Skip to content

A platform for community discussion. Free, open, simple.

Let's use the same method

Régis Hanold23229df85e5
diff --git a/app/models/notification.rb b/app/models/notification.rb
index ef2343fd79a..73efa0a510d 100644
--- a/app/models/notification.rb
+++ b/app/models/notification.rb
@@ -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)