Fix bug preventing deletion of freshly created mute rules

This commit is contained in:
Andreas Nedbal 2022-09-02 19:59:43 +02:00
parent 812c9617ff
commit 8ad0cf24b8
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ class Ajax::MuteRuleController < AjaxController
@response[:status] = :okay @response[:status] = :okay
@response[:success] = true @response[:success] = true
@response[:message] = t(".success") @response[:message] = t(".success")
@response[:id] = rule.id @response[:id] = rule.id.to_s # Returning this as a string as JavaScript defines all numbers as floats
end end
def update def update