dffd
This commit is contained in:
parent
0c66786b52
commit
5f6f5b4136
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ def post_base36id(pid, anything=None, v=None):
|
||||||
post.views += 1
|
post.views += 1
|
||||||
g.db.add(post)
|
g.db.add(post)
|
||||||
g.db.commit()
|
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()):
|
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",
|
return {"html":lambda:render_template("errors/nsfw.html",
|
||||||
v=v,
|
v=v,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue