mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 03:18:09 +08:00
FIX: invited users and new TL1 users will see their first notification highlighted
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user