Fixed: create content index fail when publish site.

This commit is contained in:
liweiyi 2025-08-05 12:21:45 +08:00
parent 21d93d92fe
commit 24b9fbe5f0

View File

@ -138,6 +138,10 @@ public class ArticleContent extends AbstractContent<CmsArticleDetail> {
if (this.getContentEntity().isLinkContent()) {
return super.getFullText();
}
if (this.hasExtendEntity() && Objects.isNull(this.getExtendEntity())) {
CmsArticleDetail articleDetail = this.getArticleService().dao().getById(this.getContentEntity().getContentId());
this.setExtendEntity(articleDetail);
}
return super.getFullText() + StringUtils.SPACE + HtmlUtils.clean(this.getExtendEntity().getContentHtml());
}