You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
316 B

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