forked from rDrama/rDrama
master
parent
86d8840b8e
commit
406ac493cc
|
@ -182,7 +182,9 @@ def post_id(pid, anything=None, v=None):
|
||||||
post.preloaded_comments = [x for x in comments if not (x.author and x.author.shadowbanned) or (v and v.id == x.author_id)]
|
post.preloaded_comments = [x for x in comments if not (x.author and x.author.shadowbanned) or (v and v.id == x.author_id)]
|
||||||
|
|
||||||
|
|
||||||
read = session["read_comments"]
|
if session.get("read_comments"): read = session["read_comments"]
|
||||||
|
else: read = None
|
||||||
|
|
||||||
read_comments = [x.id for x in post.preloaded_comments]
|
read_comments = [x.id for x in post.preloaded_comments]
|
||||||
if session.get("read_comments"): session["read_comments"] += read_comments
|
if session.get("read_comments"): session["read_comments"] += read_comments
|
||||||
else: session["read_comments"] = read_comments
|
else: session["read_comments"] = read_comments
|
||||||
|
|
Loading…
Reference in New Issue