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