Load issue attributes instead of only loading pullrequest details

This commit is contained in:
RedCocoon 2024-11-04 17:47:26 +08:00
parent 6f9647b2b9
commit 0d65d7140b

View File

@ -194,8 +194,8 @@ func renderConversation(ctx *context.Context, comment *issues_model.Comment, ori
ctx.ServerError("CanMarkConversation", err)
return
}
if err = comment.Issue.LoadPullRequest(ctx); err != nil {
ctx.ServerError("comment.Issue.LoadPullRequest", err)
if err = comment.Issue.LoadAttributes(ctx); err != nil {
ctx.ServerError("comment.Issue.LoadAttributes", err)
return
}
ctx.Data["Issue"] = comment.Issue