diff --git a/files/routes/posts.py b/files/routes/posts.py index 8f05f0bc5..e72bb9319 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -235,6 +235,7 @@ def post_id(pid, anything=None, v=None, sub=None): post.replies = get_comment_trees_eager(top_comment_ids, sort, v) post.views += 1 + g.db.expire_on_commit = False g.db.add(post) g.db.commit()