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.

fix: timeline revision tag detail title is display name

LinkinStar45bd739f519c
diff --git a/internal/base/constant/acticity.go b/internal/base/constant/acticity.go
index a1513338..d9b9787f 100644
--- a/internal/base/constant/acticity.go
+++ b/internal/base/constant/acticity.go
@@ -1,13 +1,10 @@
package constant
-// question activity
-
type ActivityTypeKey string
const (
ActEdited = "edited"
ActClosed = "closed"
- ActAccepted = "accepted"
ActVotedDown = "voted_down"
ActVotedUp = "voted_up"
ActVoteDown = "vote_down"
diff --git a/internal/service/activity/activity.go b/internal/service/activity/activity.go
index e8b624bc..a7d8f122 100644
--- a/internal/service/activity/activity.go
+++ b/internal/service/activity/activity.go
@@ -219,7 +219,7 @@ func (as *ActivityService) getOneObjectDetail(ctx context.Context, revisionID st
log.Errorf("revision parsing error %s", err)
return resp, nil
}
- resp.Title = data.SlugName
+ resp.Title = data.DisplayName
resp.OriginalText = data.OriginalText
resp.SlugName = data.SlugName
resp.MainTagSlugName = data.MainTagSlugName