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 tag ParsedText

aichy7f116809cc27
diff --git a/.goreleaser.yaml b/.goreleaser.yaml
index fd9380ee..18cbbd55 100644
--- a/.goreleaser.yaml
+++ b/.goreleaser.yaml
@@ -39,7 +39,21 @@ builds:
goos:
- linux
goarch:
- - arm64
+ - arm64
+ - id: build-arm7
+ main: ./cmd/answer/.
+ binary: answer
+ ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser
+ env:
+ - CC=arm-linux-gnueabihf-gcc
+ - CXX=arm-linux-gnueabihf-g++
+ - AR=arm-linux-gnueabihf-ar
+ goos:
+ - linux
+ goarch:
+ - arm
+ goarm:
+ - 7
- id: build-darwin-arm64
main: ./cmd/answer/.
binary: answer
diff --git a/internal/service/tag/tag_service.go b/internal/service/tag/tag_service.go
index c0bc6aca..1d938eb5 100644
--- a/internal/service/tag/tag_service.go
+++ b/internal/service/tag/tag_service.go
@@ -320,13 +320,13 @@ func (ts *TagService) GetTagWithPage(ctx context.Context, req *schema.GetTagWith
resp := make([]*schema.GetTagPageResp, 0)
for _, tag := range tags {
- excerpt := htmltext.FetchExcerpt(tag.ParsedText, "...", 240)
+ //excerpt := htmltext.FetchExcerpt(tag.ParsedText, "...", 240)
resp = append(resp, &schema.GetTagPageResp{
TagID: tag.ID,
SlugName: tag.SlugName,
DisplayName: tag.DisplayName,
- OriginalText: excerpt,
- ParsedText: excerpt,
+ OriginalText: tag.OriginalText,
+ ParsedText: tag.ParsedText,
FollowCount: tag.FollowCount,
QuestionCount: tag.QuestionCount,
IsFollower: ts.checkTagIsFollow(ctx, req.UserID, tag.ID),