1
0
Derivar 0

Fix deleting comments already deleted

master
Noah 2017-01-02 20:04:22 -08:00
ascendente 84d5b4a2cd
cometimento 8dbee56b38
1 ficheiros modificados com 3 adições e 2 eliminações

Ver ficheiro

@ -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):