forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-07-26 19:53:54 +02:00
parent eaaa153249
commit 00aa600444
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ def post_base36id(pid, anything=None, v=None):
post.views += 1
g.db.add(post)
g.db.commit()
if isinstance(session.get('over_18', 0), dict): session["over_18"] = 0
if post.over_18 and not (v and v.over_18) and not session.get('over_18', 0) >= int(time.time()):
return {"html":lambda:render_template("errors/nsfw.html",
v=v,