hot fix pq short id

This commit is contained in:
aichy126
2023-06-25 14:44:22 +08:00
parent f2a02c21df
commit 5884ec04d9
+4 -2
View File
@@ -277,9 +277,11 @@ func (tc *TemplateController) QuestionInfo(ctx *gin.Context) {
}
// comments
objectIDs := []string{id}
objectIDs := []string{uid.DeShortID(id)}
for _, answer := range answers {
objectIDs = append(objectIDs, answer.ID)
answerID := uid.DeShortID(answer.ID)
objectIDs = append(objectIDs, answerID)
}
comments, err := tc.templateRenderController.CommentList(ctx, objectIDs)
if err != nil {