mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: when a user got multiple replies to a topic, emails were missing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user