From: David Yip Date: Thu, 12 Oct 2017 09:27:45 +0000 (-0500) Subject: Restore variable assignment in MuteService#call. X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=edd1a00fafb5d41afad0c177e7c2f2f6adae6d19;p=mastodon.git Restore variable assignment in MuteService#call. 291feba6f113588cce4f06206754b31eba60044b made MuteService return the result of Account#mute!; this commit restores that behavior. --- diff --git a/app/services/mute_service.rb b/app/services/mute_service.rb index a9a02937e..547b2efa1 100644 --- a/app/services/mute_service.rb +++ b/app/services/mute_service.rb @@ -3,7 +3,7 @@ class MuteService < BaseService def call(account, target_account, notifications: nil) return if account.id == target_account.id - account.mute!(target_account, notifications: notifications) + mute = account.mute!(target_account, notifications: notifications) BlockWorker.perform_async(account.id, target_account.id) mute end