mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 05:25:16 -05:00
BUGFIX: notifications were not updated correctly live
- missing notifications when multiple replies in topic (till refresh) - not cleared properly on click
This commit is contained in:
@@ -76,6 +76,8 @@ class PostAlerter
|
||||
|
||||
user.notifications.where(notification_type: type,
|
||||
topic_id: topic.id).destroy_all
|
||||
# HACK so notification counts sync up correctly
|
||||
user.reload
|
||||
end
|
||||
|
||||
def create_notification(user, type, post, opts={})
|
||||
|
||||
Reference in New Issue
Block a user