forked from newthuhole/hole_thu_backend
fix bug 为删除的评论保留name
This commit is contained in:
2
utils.py
2
utils.py
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user