This commit is contained in:
Aevann1 2021-09-05 14:35:24 +02:00
parent 352e436b18
commit added0b31b

View file

@ -181,7 +181,7 @@ 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)]
if session.get("read_comments"): read = list(session.get("read_comments"))
if session.get("read_comments"): read = set(session.get("read_comments"))
else: read = None
read_comments = set([x.id for x in post.preloaded_comments])
if read: session["read_comments"].add(read_comments)