diff --git a/src/main/java/run/halo/comment/widget/DefaultCommentWidget.java b/src/main/java/run/halo/comment/widget/DefaultCommentWidget.java index 5bcef70..ce7cdb4 100644 --- a/src/main/java/run/halo/comment/widget/DefaultCommentWidget.java +++ b/src/main/java/run/halo/comment/widget/DefaultCommentWidget.java @@ -6,6 +6,8 @@ import org.pf4j.PluginWrapper; import org.springframework.stereotype.Component; import org.springframework.util.PropertyPlaceholderHelper; +import org.springframework.util.Assert; +import org.springframework.util.PropertyPlaceholderHelper; import org.thymeleaf.context.ITemplateContext; import org.thymeleaf.model.IAttribute; import org.thymeleaf.model.IProcessableElementTag; @@ -61,13 +63,14 @@ private String commentHtml(IAttribute groupAttribute, IAttribute kindAttribute, properties.setProperty("kind", kindAttribute.getValue()); properties.setProperty("name", nameAttribute.getValue()); properties.setProperty("colorScheme", getColorScheme(colorSchemeAttribute)); + properties.setProperty("domId", domIdFrom(group, kindAttribute.getValue(), nameAttribute.getValue())); return PROPERTY_PLACEHOLDER_HELPER.replacePlaceholders(""" -
+