about summary refs log tree commit diff
path: root/app/services/notify_service.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-07-22 16:36:36 +0200
committerGitHub <noreply@github.com>2017-07-22 16:36:36 +0200
commita929f7e6ac92cf5dbb8458eb2975fa834e751e92 (patch)
tree51f281dacb451311d1f709ad16884d44325b6498 /app/services/notify_service.rb
parentcf51e07bde14bb21161f8bbe592207c2ef88ad16 (diff)
Fix #4172 - Mutes now block notifications (#4300)
Diffstat (limited to 'app/services/notify_service.rb')
-rw-r--r--app/services/notify_service.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/notify_service.rb b/app/services/notify_service.rb
index a44df5180..ca53c61c5 100644
--- a/app/services/notify_service.rb
+++ b/app/services/notify_service.rb
@@ -21,7 +21,7 @@ class NotifyService < BaseService
   end
 
   def blocked_favourite?
-    @recipient.muting?(@notification.from_account)
+    false
   end
 
   def blocked_follow?
@@ -41,6 +41,7 @@ class NotifyService < BaseService
     blocked ||= @recipient.id == @notification.from_account.id                                                                       # Skip for interactions with self
     blocked ||= @recipient.domain_blocking?(@notification.from_account.domain) && !@recipient.following?(@notification.from_account) # 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 ||= (@notification.from_account.silenced? && !@recipient.following?(@notification.from_account))                         # Hellban
     blocked ||= (@recipient.user.settings.interactions['must_be_follower']  && !@notification.from_account.following?(@recipient))   # Options
     blocked ||= (@recipient.user.settings.interactions['must_be_following'] && !@recipient.following?(@notification.from_account))   # Options