Explorar el Código

Fix deleting comments already deleted

master
Noah Petherbridge hace 3 años
padre
commit
8dbee56b38
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. +3
    -2
      rophako/model/comment.py

+ 3
- 2
rophako/model/comment.py Ver fichero

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


Cargando…
Cancelar
Guardar