about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2017-10-12 04:27:45 -0500
committerDavid Yip <yipdw@member.fsf.org>2017-10-12 04:27:45 -0500
commitedd1a00fafb5d41afad0c177e7c2f2f6adae6d19 (patch)
treec66e60786834e4fe8941473fa37410629b7e0ad2 /app/services
parent13e05fece2a60c3b0a6f4328f7e96f8dd89008cf (diff)
Restore variable assignment in MuteService#call.
291feba6f113588cce4f06206754b31eba60044b made MuteService return the
result of Account#mute!; this commit restores that behavior.
Diffstat (limited to 'app/services')
-rw-r--r--app/services/mute_service.rb2
1 files changed, 1 insertions, 1 deletions
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