diff --git a/files/routes/comments.py b/files/routes/comments.py index fa6cf2a99..e73b9ecab 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -700,7 +700,7 @@ def edit_comment(cid, v): n = Notification(comment_id=c.id, user_id=x) g.db.add(n) - + g.db.commit() return {"comment": c.realbody(v)} diff --git a/files/routes/posts.py b/files/routes/posts.py index d0bf7da53..a770ea38e 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1058,6 +1058,7 @@ def submit_post(v, sub=None): if not post.private and SITE == 'watchpeopledie.co': send_wpd_message(post.permalink) + g.db.commit() if request.headers.get("Authorization"): return post.json else: post.voted = 1