FIX: invited users and new TL1 users will see their first notification highlighted

This commit is contained in:
Neil Lalonde
2017-02-17 10:28:38 -05:00
parent 6212016688
commit 3fb50d587d
2 changed files with 10 additions and 2 deletions

View File

@ -354,7 +354,7 @@ class User < ActiveRecord::Base
TRACK_FIRST_NOTIFICATION_READ_DURATION = 1.week.to_i
def read_first_notification?
if (trust_level > TrustLevel[0] ||
if (trust_level > TrustLevel[1] ||
created_at < TRACK_FIRST_NOTIFICATION_READ_DURATION.seconds.ago)
return true