~cytrogen/masto-fe

ref: 7e7d6e695b5b7ef8d8c10b1d9ac79375ca1b8209 masto-fe/app/services/unmute_service.rb -rw-r--r-- 298 bytes
7e7d6e69 — Claire Fix incorrectly keeping outdated update notices absent from the API endpoint (#27021) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class UnmuteService < BaseService
  def call(account, target_account)
    return unless account.muting?(target_account)

    account.unmute!(target_account)

    MergeWorker.perform_async(target_account.id, account.id) if account.following?(target_account)
  end
end