mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
This commit is contained in:
parent
63f0979799
commit
291feba6f1
@ -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…
Reference in New Issue
Block a user