mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 05:52:49 +08:00
Let's use the same method
This commit is contained in:
parent
f988fa31aa
commit
d23229df85
|
@ -65,7 +65,7 @@ class Notification < ActiveRecord::Base
|
|||
.where(read: false)
|
||||
.update_all(read: true)
|
||||
|
||||
user.publish_notifications_state if count > 0
|
||||
refresh_notification_count if count > 0
|
||||
|
||||
count
|
||||
end
|
||||
|
@ -77,7 +77,7 @@ class Notification < ActiveRecord::Base
|
|||
.where(read: false)
|
||||
.update_all(read: true)
|
||||
|
||||
user.publish_notifications_state if count > 0
|
||||
refresh_notification_count if count > 0
|
||||
end
|
||||
|
||||
def self.interesting_after(min_date)
|
||||
|
|
Loading…
Reference in New Issue
Block a user