fd
This commit is contained in:
parent
09da60090f
commit
9c3a35d611
1 changed files with 1 additions and 1 deletions
|
@ -182,10 +182,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)]
|
||||
|
||||
|
||||
print(session.get("read_comments"))
|
||||
read_comments = [x.id for x in post.preloaded_comments]
|
||||
if session.get("read_comments"): session["read_comments"] += read_comments
|
||||
else: session["read_comments"] = read_comments
|
||||
print(session.get("read_comments"))
|
||||
|
||||
post.views += 1
|
||||
g.db.add(post)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue