diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-12-21 12:08:49 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-12-21 12:08:49 -0600 |
commit | b8f7ccf22729b77fbb5a44ecda01de5329d07adc (patch) | |
tree | a756895666b8a6513c34a7c1286aea98c204016f /app/services | |
parent | 82f98a770b088a3ffb2c165fd22ccb0adadd57a7 (diff) |
add option to set mutes that apply only to timelines
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/mute_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/mute_service.rb b/app/services/mute_service.rb index 676804cb9..1a3f4981f 100644 --- a/app/services/mute_service.rb +++ b/app/services/mute_service.rb @@ -1,10 +1,10 @@ # frozen_string_literal: true class MuteService < BaseService - def call(account, target_account, notifications: nil) + def call(account, target_account, notifications: nil, timelines_only: nil) return if account.id == target_account.id - mute = account.mute!(target_account, notifications: notifications) + mute = account.mute!(target_account, notifications: notifications, timelines_only: timelines_only) if mute.hide_notifications? BlockWorker.perform_async(account.id, target_account.id) |