fix empty comment reindex

This commit is contained in:
simon 2022-12-01 18:13:04 +07:00
parent 706a710587
commit c06f6c68b4
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 3 additions and 0 deletions

View File

@ -171,6 +171,9 @@ class Comments:
self.build_json()
es_comments = self.get_es_comments()
if not self.comments_format:
return
if not self.comments_format and es_comments["comment_comments"]:
# don't overwrite comments in es
return