forked from rDrama/rDrama
dffd
parent
eaaa153249
commit
00aa600444
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue