From: Eugen Rochko Date: Tue, 3 Oct 2017 23:22:33 +0000 (+0200) Subject: Follow up to #5172, clean up notifications after mute like after block (#5198) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=291feba6f113588cce4f06206754b31eba60044b;p=mastodon.git Follow up to #5172, clean up notifications after mute like after block (#5198) --- 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