FIX: Bug setting notification level to muted/ignored on user page (#16268)

This commit is contained in:
Mark VanLandingham
2022-03-25 10:51:45 -05:00
committed by GitHub
parent f3aab19829
commit a3563336db
7 changed files with 146 additions and 11 deletions

View File

@ -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