diff options
author | Mario de la Ossa <mariodelaossa@gmail.com> | 2018-03-16 04:05:44 +0300 |
---|---|---|
committer | Mario de la Ossa <mariodelaossa@gmail.com> | 2018-03-19 21:13:03 +0300 |
commit | 4cb3b71d9dcb447883abbc2086834bb36e4e72de (patch) | |
tree | 5f46dd3c78e20e857f5f44ae066d3a15effc33a9 /app | |
parent | feb95ce3412ae3ab8b2c990b8ddf64d8d8945670 (diff) |
Always notify new mentions even if explicitly unsubscribed
Diffstat (limited to 'app')
-rw-r--r-- | app/models/notification_recipient.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/notification_recipient.rb b/app/models/notification_recipient.rb index fd70e920c7e..e95655e19f8 100644 --- a/app/models/notification_recipient.rb +++ b/app/models/notification_recipient.rb @@ -35,7 +35,8 @@ class NotificationRecipient # check this last because it's expensive # nobody should receive notifications if they've specifically unsubscribed - return false if unsubscribed? + # except if they were mentioned. + return false if @type != :mention && unsubscribed? true end |