about summary refs log tree commit diff
path: root/app/services/mute_status_service.rb
blob: bdf99232c1a9713ce8881207f7d42cc43c00fdfc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

class MuteStatusService < BaseService
  def call(account, status)
    return if account.blank? || status.blank?

    account.mute_status!(status)
    FeedManager.instance.unpush_status(account, status)
  end
end