Skip to content

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

Fix the 'PostMover' spec.

Vinoth Kannanb0e3062fdf2d
diff --git a/app/models/notification.rb b/app/models/notification.rb
index fc0e60805b0..9b907bc3470 100644
--- a/app/models/notification.rb
+++ b/app/models/notification.rb
@@ -232,6 +232,11 @@ class Notification < ActiveRecord::Base
Post.where(topic: topic_id, post_number: post_number).pluck_first(:id)
end
+ def reload(options = nil)
+ super
+ @data_hash = nil
+ end
+
protected
def refresh_notification_count