about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-07-19 12:10:14 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:43:08 -0500
commita34ccaef8d22110fc9926702ee9c5b06388c13fb (patch)
treed0ad77949883243d53c19d173a1de51467ac9336 /app/services
parent86733d97efac4886b0bf8c0a4ee8c645076eb1e7 (diff)
[Feature] Add timeline-only mutes
Diffstat (limited to 'app/services')
-rw-r--r--app/services/mute_service.rb4
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)