mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:34:31 +08:00
FIX: Bug setting notification level to muted/ignored on user page (#16268)
This commit is contained in:

committed by
GitHub

parent
f3aab19829
commit
a3563336db
@ -1365,6 +1365,8 @@ class UsersController < ApplicationController
|
||||
elsif params[:notification_level] == "normal"
|
||||
MutedUser.where(user: acting_user, muted_user: target_user).delete_all
|
||||
IgnoredUser.where(user: acting_user, ignored_user: target_user).delete_all
|
||||
else
|
||||
return render_json_error(I18n.t("notification_level.invalid_value", value: params[:notification_level]))
|
||||
end
|
||||
|
||||
render json: success_json
|
||||
|
Reference in New Issue
Block a user