Fix deleting comments already deleted
This commit is contained in:
parent
84d5b4a2cd
commit
8dbee56b38
|
@ -155,6 +155,7 @@ def update_comment(thread, cid, data):
|
||||||
def delete_comment(thread, cid):
|
def delete_comment(thread, cid):
|
||||||
"""Delete a comment from a thread."""
|
"""Delete a comment from a thread."""
|
||||||
comments = get_comments(thread)
|
comments = get_comments(thread)
|
||||||
|
if cid in comments:
|
||||||
del comments[cid]
|
del comments[cid]
|
||||||
write_comments(thread, comments)
|
write_comments(thread, comments)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user