Skip to content
Snippets Groups Projects
Commit 291feba6 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

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

parent 63f09797
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment