blob: a9a02937e52077dd3133c5e61b1b541e6e62a372 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
# frozen_string_literal: true
class MuteService < BaseService
def call(account, target_account, notifications: nil)
return if account.id == target_account.id
account.mute!(target_account, notifications: notifications)
BlockWorker.perform_async(account.id, target_account.id)
mute
end
end
|