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_service.rb5
-rw-r--r--app/services/notify_service.rb2
2 files changed, 4 insertions, 3 deletions
diff --git a/app/services/mute_service.rb b/app/services/mute_service.rb
index 132369484..9b7cbd81f 100644
--- a/app/services/mute_service.rb
+++ b/app/services/mute_service.rb
@@ -1,9 +1,10 @@
 # frozen_string_literal: true
 
 class MuteService < BaseService
-  def call(account, target_account)
+  def call(account, target_account, notifications: nil)
     return if account.id == target_account.id
-    mute = account.mute!(target_account)
+    FeedManager.instance.clear_from_timeline(account, target_account)
+    mute = account.mute!(target_account, notifications: notifications)
     BlockWorker.perform_async(account.id, target_account.id)
     mute
   end
diff --git a/app/services/notify_service.rb b/app/services/notify_service.rb
index 6a24a8247..8a77f2f38 100644
--- a/app/services/notify_service.rb
+++ b/app/services/notify_service.rb
@@ -81,7 +81,7 @@ class NotifyService < BaseService
     blocked ||= from_self?                                       # Skip for interactions with self
     blocked ||= domain_blocking?                                 # Skip for domain blocked accounts
     blocked ||= @recipient.blocking?(@notification.from_account) # Skip for blocked accounts
-    blocked ||= @recipient.muting?(@notification.from_account)   # Skip for muted accounts
+    blocked ||= @recipient.muting_notifications?(@notification.from_account)
     blocked ||= hellbanned?                                      # Hellban
     blocked ||= optional_non_follower?                           # Options
     blocked ||= optional_non_following?                          # Options