remotes/1693045480750635534/spooky-22
Aevann1 2021-09-10 07:05:11 +02:00
parent 4376e89633
commit 574e6a413c
1 changed files with 2 additions and 5 deletions

View File

@ -183,9 +183,6 @@ 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(set(session.get("read_comments")))
# else: read = None
# unread comment highlight
last_view_utc = session.get(str(post.id))
@ -194,8 +191,8 @@ def post_id(pid, anything=None, v=None):
session[str(post.id)] = int(time.time())
#read_comments = [x.id for x in post.preloaded_comments]
print(session)
post.views += 1
g.db.add(post)
if isinstance(session.get('over_18', 0), dict): session["over_18"] = 0