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.
feat: use uid.DeshortID on v.ID
foxzero-0075d777896e3c8
diff --git a/internal/service/question_service.go b/internal/service/question_service.goindex e01054b4..5e8477a4 100644--- a/internal/service/question_service.go+++ b/internal/service/question_service.go@@ -1241,7 +1241,7 @@ func (qs *QuestionService) SimilarQuestion(ctx context.Context, questionID strin}var result []*schema.QuestionPageRespfor _, v := range similarQuestions {- if v.ID != questionID {+ if uid.DeShortID(v.ID) != questionID {result = append(result, v)}}