about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
Diffstat (limited to 'app/services')
-rw-r--r--app/services/mute_conversation_service.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/services/mute_conversation_service.rb b/app/services/mute_conversation_service.rb
index 46adb98dc..56defae52 100644
--- a/app/services/mute_conversation_service.rb
+++ b/app/services/mute_conversation_service.rb
@@ -1,10 +1,10 @@
 # frozen_string_literal: true
 
 class MuteConversationService < BaseService
-  def call(account, conversation, hidden: false)
+  def call(account, conversation)
     return if account.blank? || conversation.blank?
 
-    account.mute_conversation!(conversation, hidden: hidden)
-    MuteConversationWorker.perform_async(account.id, conversation.id) if hidden
+    account.mute_conversation!(conversation)
+    MuteConversationWorker.perform_async(account.id, conversation.id) unless account.id == conversation.account_id
   end
 end