diff --git a/files/routes/posts.py b/files/routes/posts.py index 1cf1760dc..5b9dc6b16 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -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: