mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 03:21:12 +08:00
FIX: Remove tags from experimental sidebar on notification level changed (#17083)
As part of this commit, a bug where updating a tag's notification level on the server side does not update the state of the user's tag notification levels on the client side is fixed too.
This commit is contained in:

committed by
GitHub

parent
47034d9ca0
commit
e7e23e8d9c
@ -36,14 +36,4 @@ class BasicUserSerializer < ApplicationSerializer
|
||||
def category_user_notification_levels
|
||||
@category_user_notification_levels ||= CategoryUser.notification_levels_for(user)
|
||||
end
|
||||
|
||||
def tags_with_notification_level(lookup_level)
|
||||
tag_user_notification_levels.select do |id, level|
|
||||
level == TagUser.notification_levels[lookup_level]
|
||||
end.keys
|
||||
end
|
||||
|
||||
def tag_user_notification_levels
|
||||
@tag_user_notification_levels ||= TagUser.notification_levels_for(user)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user