mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 13:06:56 +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
@ -301,7 +301,7 @@ class TagsController < ::ApplicationController
|
||||
raise Discourse::NotFound unless tag
|
||||
level = params[:tag_notification][:notification_level].to_i
|
||||
TagUser.change(current_user.id, tag.id, level)
|
||||
render json: { notification_level: level, tag_id: tag.id }
|
||||
render_serialized(current_user, UserTagNotificationsSerializer, root: false)
|
||||
end
|
||||
|
||||
def personal_messages
|
||||
|
Reference in New Issue
Block a user