chuckya/app/services/mute_service.rb
2017-10-11 10:43:10 -07:00

10 lines
309 B
Ruby

# 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