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.
fix: edit question fails when short links enabled (#1554)
Luffy3b9f1370612e
diff --git a/internal/repo/tag/tag_rel_repo.go b/internal/repo/tag/tag_rel_repo.goindex 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 statusfunc (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()