forked from rDrama/rDrama
fix unread highlight
parent
7f90ad45a0
commit
40834d8277
|
@ -330,6 +330,8 @@ def notifications(v:User):
|
||||||
for c, n in comments:
|
for c, n in comments:
|
||||||
if n.created_utc > 1620391248: c.notif_utc = n.created_utc
|
if n.created_utc > 1620391248: c.notif_utc = n.created_utc
|
||||||
|
|
||||||
|
if not n.read: c.unread = True
|
||||||
|
|
||||||
if c.parent_submission or c.wall_user_id:
|
if c.parent_submission or c.wall_user_id:
|
||||||
total.append(c)
|
total.append(c)
|
||||||
|
|
||||||
|
@ -366,7 +368,6 @@ def notifications(v:User):
|
||||||
|
|
||||||
if not n.read and not session.get("GLOBAL"):
|
if not n.read and not session.get("GLOBAL"):
|
||||||
n.read = True
|
n.read = True
|
||||||
c.unread = True
|
|
||||||
g.db.add(n)
|
g.db.add(n)
|
||||||
|
|
||||||
total.extend(listing)
|
total.extend(listing)
|
||||||
|
|
Loading…
Reference in New Issue