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(question): add closed question linking
LinkinStarsbc8c6993b754
diff --git a/internal/repo/question/question_repo.go b/internal/repo/question/question_repo.goindex 30370281..16b6085f 100644--- a/internal/repo/question/question_repo.go+++ b/internal/repo/question/question_repo.go@@ -729,7 +729,7 @@ func (qr *questionRepo) UpdateQuestionLinkStatus(ctx context.Context, status intfunc (qr *questionRepo) GetQuestionLink(ctx context.Context, page, pageSize int, questionID string, orderCond string, inDays int) (questionList []*entity.Question, total int64, err error) {questionList = make([]*entity.Question, 0)questionID = uid.DeShortID(questionID)- questionStatus := []int{entity.QuestionStatusAvailable, entity.QuestionStatusPending}+ questionStatus := []int{entity.QuestionStatusAvailable, entity.QuestionStatusClosed, entity.QuestionStatusPending}if questionID == "0" {return nil, 0, errors.InternalServer(reason.DatabaseError).WithError(fmt.Errorf("questionID is empty"),