浏览代码

Fix deleting comments already deleted

master
父节点
当前提交
8dbee56b38
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. +3
    -2
      rophako/model/comment.py

+ 3
- 2
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):


正在加载...
取消
保存