about summary refs log tree commit diff
path: root/app/services/mute_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/mute_service.rb')
-rw-r--r--app/services/mute_service.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/services/mute_service.rb b/app/services/mute_service.rb
index 9ae9afd62..5e7e1d292 100644
--- a/app/services/mute_service.rb
+++ b/app/services/mute_service.rb
@@ -1,13 +1,13 @@
 # frozen_string_literal: true
 
 class MuteService < BaseService
-  def call(account, target_account, notifications: nil, duration: 0)
+  def call(account, target_account, notifications: nil, timelines_only: nil, duration: 0)
     return if account.id == target_account.id
 
-    mute = account.mute!(target_account, notifications: notifications, duration: duration)
+    mute = account.mute!(target_account, notifications: notifications, timelines_only: timelines_only, duration: duration)
 
     if mute.hide_notifications?
-      BlockWorker.perform_async(account.id, target_account.id)
+      BlockWorker.perform_async(account.id, target_account.id, defederate: false)
     else
       MuteWorker.perform_async(account.id, target_account.id)
     end