Fix: Post view count does not update properly.

This commit is contained in:
Ben Rog-Wilhelm 2022-12-22 19:41:42 -06:00
parent 0454a64020
commit fb77cbcc2b

View file

@ -236,7 +236,7 @@ def post_id(pid, anything=None, v=None, sub=None):
post.views += 1
g.db.add(post)
g.db.flush()
g.db.commit()
if request.headers.get("Authorization"): return post.json
else: