mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 02:44:39 +08:00
Let's use the same method
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user