This is an automated email from the ASF dual-hosted git repository.
linkinstar pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/answer.git
The following commit(s) were added to refs/heads/dev by this push:
new 46795896 Use DeShortID on questionID for UpdateQuestionLink() (#1288)
46795896 is described below
commit 4679589655b5800bb7db3b41ad30f3f0e5f32b55
Author: Dāvis <[email protected]>
AuthorDate: Mon Mar 17 07:28:43 2025 +0000
Use DeShortID on questionID for UpdateQuestionLink() (#1288)
When using shortIds we need to `DeShort` them.
Fixes #1277
---
.github/ISSUE_TEMPLATE/config.yml | 2 +-
internal/service/question_common/question.go | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/ISSUE_TEMPLATE/config.yml
b/.github/ISSUE_TEMPLATE/config.yml
index b333532d..6c4c932a 100644
--- a/.github/ISSUE_TEMPLATE/config.yml
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-blank_issues_enabled: false
+blank_issues_enabled: true
contact_links:
- name: Questions & Discussions
url: https://meta.answer.dev
diff --git a/internal/service/question_common/question.go
b/internal/service/question_common/question.go
index 5e5f9dbe..9feca222 100644
--- a/internal/service/question_common/question.go
+++ b/internal/service/question_common/question.go
@@ -709,7 +709,7 @@ func (qs *QuestionCommon) UpdateQuestionLink(ctx
context.Context, questionID, an
return parsedText, err
}
// Update the number of question links that have been removed
- linkedQuestionIDs, err := qs.questionRepo.GetLinkedQuestionIDs(ctx,
questionID, entity.QuestionLinkStatusDeleted)
+ linkedQuestionIDs, err := qs.questionRepo.GetLinkedQuestionIDs(ctx,
uid.DeShortID(questionID), entity.QuestionLinkStatusDeleted)
if err != nil {
log.Errorf("get linked question ids error %v", err)
} else {