diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-09-17 12:05:45 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-09-17 12:08:35 -0500 |
commit | e56e3d187f8ddd3db72fc90c5d200f552d5c1c04 (patch) | |
tree | 59204082c7f9731d301716f08865f8639149452c /app/services | |
parent | 4a1b8bcf34ce834ee8c30f1ac94c29f4e56a2b41 (diff) |
[Filters] Merge thread muting and hiding into a single action
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/mute_conversation_service.rb | 6 |
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 |