mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
Cleaned up TopicUserSpec, introduces clearing of pinned topics
This commit is contained in:
@ -27,7 +27,7 @@ class Unread
|
||||
protected
|
||||
|
||||
def do_not_notify?(notification_level)
|
||||
[TopicUser::NotificationLevel::MUTED, TopicUser::NotificationLevel::REGULAR].include?(notification_level)
|
||||
[TopicUser.notification_levels[:muted], TopicUser.notification_levels[:regular]].include?(notification_level)
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user