forked from MarseyWorld/MarseyWorld
master
parent
4af2d86ebc
commit
a205f626a2
|
@ -216,8 +216,8 @@ def post_id(pid, anything=None, v=None):
|
|||
|
||||
for key in keys: session.pop(key)
|
||||
|
||||
post.views += 1
|
||||
g.db.add(post)
|
||||
#post.views += 1
|
||||
#g.db.add(post)
|
||||
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 request.headers.get("Authorization"): return {"error":"Must be 18+ to view"}, 451
|
||||
|
|
Loading…
Reference in New Issue