df
This commit is contained in:
parent
a304261ebe
commit
c4d99fb898
2 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None):
|
||||||
|
|
||||||
post = get_post(pid, v=v)
|
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())
|
t = int(time.time())
|
||||||
return {'html': lambda: render_template("errors/nsfw.html",
|
return {'html': lambda: render_template("errors/nsfw.html",
|
||||||
v=v,
|
v=v,
|
||||||
|
|
|
@ -232,7 +232,7 @@ def post_base36id(pid, anything=None, v=None):
|
||||||
g.db.add(post)
|
g.db.add(post)
|
||||||
g.db.commit()
|
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())
|
t = int(time.time())
|
||||||
return {"html":lambda:render_template("errors/nsfw.html",
|
return {"html":lambda:render_template("errors/nsfw.html",
|
||||||
v=v,
|
v=v,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue