This is an automated email from the ASF dual-hosted git repository.

robinv8 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/answer.git


The following commit(s) were added to refs/heads/main by this push:
     new 3b9f1370 fix: edit question fails when short links enabled (#1554)
3b9f1370 is described below

commit 3b9f1370612e690a0b7f230f05e688930db4c6d3
Author: Luffy <[email protected]>
AuthorDate: Fri Jul 17 22:38:41 2026 +0800

    fix: edit question fails when short links enabled (#1554)
    
    Close #1553
---
 internal/repo/tag/tag_rel_repo.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/internal/repo/tag/tag_rel_repo.go 
b/internal/repo/tag/tag_rel_repo.go
index a52b1bf5..1f2dd63f 100644
--- a/internal/repo/tag/tag_rel_repo.go
+++ b/internal/repo/tag/tag_rel_repo.go
@@ -195,6 +195,7 @@ func (tr *tagRelRepo) CountTagRelByTagID(ctx 
context.Context, tagID string) (cou
 // GetTagRelDefaultStatusByObjectID get tag rel default status
 func (tr *tagRelRepo) GetTagRelDefaultStatusByObjectID(ctx context.Context, 
objectID string) (status int, err error) {
        question := entity.Question{}
+       objectID = uid.DeShortID(objectID)
        exist, err := tr.data.DB.Context(ctx).ID(objectID).Cols("show", 
"status").Get(&question)
        if err != nil {
                err = 
errors.InternalServer(reason.DatabaseError).WithError(err).WithStack()

Reply via email to