]> cat aescling's git repositories - mastodon.git/commitdiff
Restore variable assignment in MuteService#call.
authorDavid Yip <yipdw@member.fsf.org>
Thu, 12 Oct 2017 09:27:45 +0000 (04:27 -0500)
committerDavid Yip <yipdw@member.fsf.org>
Thu, 12 Oct 2017 09:27:45 +0000 (04:27 -0500)
291feba6f113588cce4f06206754b31eba60044b made MuteService return the
result of Account#mute!; this commit restores that behavior.

app/services/mute_service.rb

index a9a02937e52077dd3133c5e61b1b541e6e62a372..547b2efa1a142ab44e544e2bad0f03029776a6b0 100644 (file)
@@ -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
This page took 0.049505 seconds and 3 git commands to generate.