From c4d99fb898682e26e10d0ae4e5697ad6cbf8d0bb Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 26 Jul 2021 02:05:15 +0200 Subject: [PATCH] df --- drama/routes/comments.py | 2 +- drama/routes/posts.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drama/routes/comments.py b/drama/routes/comments.py index 38809247e..5bb941022 100644 --- a/drama/routes/comments.py +++ b/drama/routes/comments.py @@ -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, diff --git a/drama/routes/posts.py b/drama/routes/posts.py index 280e2ef1a..53a6b42b3 100644 --- a/drama/routes/posts.py +++ b/drama/routes/posts.py @@ -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,