mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: when a user got multiple replies to a topic, emails were missing
This commit is contained in:
parent
12b85b9ef9
commit
1bb485fca5
8 changed files with 226 additions and 130 deletions
|
@ -158,6 +158,10 @@ class Notification < ActiveRecord::Base
|
|||
Notification.types[:private_message] == self.notification_type && !read
|
||||
end
|
||||
|
||||
def post_id
|
||||
Post.where(topic: topic_id, post_number: post_number).pluck(:id).first
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def refresh_notification_count
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue