FEATURE: like notification frequency of never

This commit is contained in:
Sam
2016-03-06 09:12:59 +11:00
parent a656a672a1
commit af577a5854
6 changed files with 21 additions and 2 deletions
+2
View File
@@ -221,6 +221,8 @@ class PostAlerter
return if user.blank?
return if user.id == Discourse::SYSTEM_USER_ID
return if type == Notification.types[:liked] && user.user_option.like_notification_frequency == UserOption.like_notification_frequency_type[:never]
opts ||= {}
# Make sure the user can see the post