This commit is contained in:
Aevann1 2021-07-26 02:05:15 +02:00
parent a304261ebe
commit c4d99fb898
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None):
post = get_post(pid, v=v)
if post.over_18 and not (v and v.over_18) and not session_over18(1):
if post.over_18 and not (v and v.over_18) and not session_over18():
t = int(time.time())
return {'html': lambda: render_template("errors/nsfw.html",
v=v,

View file

@ -232,7 +232,7 @@ def post_base36id(pid, anything=None, v=None):
g.db.add(post)
g.db.commit()
if post.over_18 and not (v and v.over_18) and not session_over18(1):
if post.over_18 and not (v and v.over_18) and not session_over18():
t = int(time.time())
return {"html":lambda:render_template("errors/nsfw.html",
v=v,