Browse Source

Fix deleting comments already deleted

master
Noah Petherbridge 5 years ago
parent
commit
8dbee56b38
  1. 5
      rophako/model/comment.py

5
rophako/model/comment.py

@ -155,8 +155,9 @@ def update_comment(thread, cid, data):
def delete_comment(thread, cid):
"""Delete a comment from a thread."""
comments = get_comments(thread)
del comments[cid]
write_comments(thread, comments)
if cid in comments:
del comments[cid]
write_comments(thread, comments)
def make_quick_delete_token(thread, cid):

Loading…
Cancel
Save