fix bug 为删除的评论保留name

This commit is contained in:
2020-09-09 20:25:11 +08:00
parent 864e035b90
commit 6684fd761e

View File

@@ -56,7 +56,7 @@ def map_comment(p, name):
'text': c.content, 'text': c.content,
'timestamp': c.timestamp, 'timestamp': c.timestamp,
'can_del': check_can_del(name, c.name_hash) 'can_del': check_can_del(name, c.name_hash)
} for c in p.comments if not c.deleted } for c in p.comments if not (c.deleted and gen_name_id(c.name_hash)>=0)
] ]
def map_syslog(s): def map_syslog(s):