The code powering m.abunchtell.com https://m.abunchtell.com
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

16 linhas
440 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. if mute.hide_notifications?
  7. BlockWorker.perform_async(account.id, target_account.id)
  8. else
  9. FeedManager.instance.clear_from_timeline(account, target_account)
  10. end
  11. mute
  12. end
  13. end