diff options
Diffstat (limited to 'app/services/mute_service.rb')
-rw-r--r-- | app/services/mute_service.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/services/mute_service.rb b/app/services/mute_service.rb index 547b2efa1..c6122a152 100644 --- a/app/services/mute_service.rb +++ b/app/services/mute_service.rb @@ -3,8 +3,13 @@ class MuteService < BaseService def call(account, target_account, notifications: nil) return if account.id == target_account.id + mute = account.mute!(target_account, notifications: notifications) - BlockWorker.perform_async(account.id, target_account.id) + if mute.hide_notifications? + BlockWorker.perform_async(account.id, target_account.id) + else + FeedManager.instance.clear_from_timeline(account, target_account) + end mute end end |