about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-10-04 01:22:33 +0200
committerGitHub <noreply@github.com>2017-10-04 01:22:33 +0200
commit291feba6f113588cce4f06206754b31eba60044b (patch)
treeb31afd4a9590a77d02d9f541dd54932ecc35d103
parent63f097979990bf5ba9db848b8a253056bad781af (diff)
Follow up to #5172, clean up notifications after mute like after block (#5198)
-rw-r--r--app/services/mute_service.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/services/mute_service.rb b/app/services/mute_service.rb
index 92f92cc7d..132369484 100644
--- a/app/services/mute_service.rb
+++ b/app/services/mute_service.rb
@@ -3,7 +3,8 @@
 class MuteService < BaseService
   def call(account, target_account)
     return if account.id == target_account.id
-    FeedManager.instance.clear_from_timeline(account, target_account)
-    account.mute!(target_account)
+    mute = account.mute!(target_account)
+    BlockWorker.perform_async(account.id, target_account.id)
+    mute
   end
 end