]> cat aescling's git repositories - mastodon.git/commitdiff
Follow up to #5172, clean up notifications after mute like after block (#5198)
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 3 Oct 2017 23:22:33 +0000 (01:22 +0200)
committerGitHub <noreply@github.com>
Tue, 3 Oct 2017 23:22:33 +0000 (01:22 +0200)
app/services/mute_service.rb

index 92f92cc7d3d94e27687aa5164492995dcba44fdd..132369484d7101d698e50c5532acda62d46f75d8 100644 (file)
@@ -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