comments fix

This commit is contained in:
Igor Lobanov
2022-12-06 17:00:19 +01:00
parent b9d0e47fca
commit 54e45afa55
3 changed files with 14 additions and 12 deletions

View File

@@ -180,6 +180,7 @@ async def migrate(entry, storage):
def migrate_2stage(old_comment, idmap):
if old_comment.get('body'):
new_id = idmap.get(old_comment.get('oid'))
new_id = idmap.get(old_comment.get('_id'))
if new_id:
new_replyto_id = None
old_replyto_id = old_comment.get("replyTo")