forked from MarseyWorld/MarseyWorld
master
parent
266d272872
commit
02430dbfc9
|
@ -181,9 +181,10 @@ 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 v and v.id == 1: print session.get("read_comments")
|
||||
read = session.get("read_comments")
|
||||
read_comments = [x.id for x in post.preloaded_comments]
|
||||
if session.get("read_comments"): session["read_comments"] += read_comments
|
||||
if read: session["read_comments"] += read_comments
|
||||
else: session["read_comments"] = read_comments
|
||||
|
||||
post.views += 1
|
||||
|
|
Loading…
Reference in New Issue