This is an automated email from the ASF dual-hosted git repository. LinkinStars pushed a commit to branch dev in repository https://gitbox.apache.org/repos/asf/answer.git
commit a12395cece020df13defcb5ba6e44d27f1514bb3 Author: seiya <[email protected]> AuthorDate: Thu Oct 15 13:09:51 2026 +0000 return error on Info() fail --- internal/service/content/question_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/service/content/question_service.go b/internal/service/content/question_service.go index ced0e010..c04baa28 100644 --- a/internal/service/content/question_service.go +++ b/internal/service/content/question_service.go @@ -1466,7 +1466,7 @@ func canViewSimilarQuestion(question *entity.Question, userID string, per schema func (qs *QuestionService) SimilarQuestion(ctx context.Context, questionID string, loginUserID string) ([]*schema.QuestionPageResp, int64, error) { question, err := qs.questioncommon.Info(ctx, questionID, loginUserID) if err != nil { - return nil, 0, nil + return nil, 0, err } tagNames := make([]string, 0, len(question.Tags)) for _, tag := range question.Tags {
