mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Don't publish to the /reviewable_counts channel (#17779)
Follow-up to ce9eec8606.
I did a last-minute refactoring before merging the commit above where I extracted the Message Bus publish call into a new method, but forgot to delete the publish call after adding a call to the new method.
This commit is contained in:
@@ -643,11 +643,6 @@ class User < ActiveRecord::Base
|
||||
if max_reviewable_id
|
||||
update!(last_seen_reviewable_id: max_reviewable_id)
|
||||
publish_reviewable_counts(unseen_reviewable_count: self.unseen_reviewable_count)
|
||||
MessageBus.publish(
|
||||
"/reviewable_counts",
|
||||
{ unseen_reviewable_count: self.unseen_reviewable_count },
|
||||
user_ids: [self.id]
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user