Browse Source

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

pull/4/head
Eugen Rochko 6 years ago
committed by GitHub
parent
commit
291feba6f1
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      app/services/mute_service.rb

+ 3
- 2
app/services/mute_service.rb View 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

Loading…
Cancel
Save