forked from rDrama/rDrama
commit before rendering
parent
95eea24363
commit
c12f7a5f9a
|
@ -700,7 +700,7 @@ def edit_comment(cid, v):
|
||||||
n = Notification(comment_id=c.id, user_id=x)
|
n = Notification(comment_id=c.id, user_id=x)
|
||||||
g.db.add(n)
|
g.db.add(n)
|
||||||
|
|
||||||
|
g.db.commit()
|
||||||
return {"comment": c.realbody(v)}
|
return {"comment": c.realbody(v)}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1058,6 +1058,7 @@ def submit_post(v, sub=None):
|
||||||
if not post.private and SITE == 'watchpeopledie.co':
|
if not post.private and SITE == 'watchpeopledie.co':
|
||||||
send_wpd_message(post.permalink)
|
send_wpd_message(post.permalink)
|
||||||
|
|
||||||
|
g.db.commit()
|
||||||
if request.headers.get("Authorization"): return post.json
|
if request.headers.get("Authorization"): return post.json
|
||||||
else:
|
else:
|
||||||
post.voted = 1
|
post.voted = 1
|
||||||
|
|
Loading…
Reference in New Issue