Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

update GetExcerpt

aichy12690bfa0dcc7b4
diff --git a/internal/schema/tag_schema.go b/internal/schema/tag_schema.go
index cc046b37..3eb8d389 100644
--- a/internal/schema/tag_schema.go
+++ b/internal/schema/tag_schema.go
@@ -90,7 +90,7 @@ type GetTagResp struct {
}
func (tr *GetTagResp) GetExcerpt() {
- excerpt := strings.TrimSpace(tr.OriginalText)
+ excerpt := strings.TrimSpace(tr.ParsedText)
idx := strings.Index(excerpt, "\n")
if idx >= 0 {
excerpt = excerpt[0:idx]