Follow up to #5172, clean up notifications after mute like after block (#5198)

lolsob-rspec
Eugen Rochko 2017-10-04 01:22:33 +02:00 committed by GitHub
parent 2e6db37776
commit 23dd2eb614
1 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,8 @@
class MuteService < BaseService class MuteService < BaseService
def call(account, target_account) def call(account, target_account)
return if account.id == target_account.id return if account.id == target_account.id
FeedManager.instance.clear_from_timeline(account, target_account) mute = account.mute!(target_account)
account.mute!(target_account) BlockWorker.perform_async(account.id, target_account.id)
mute
end end
end end