From: 6543 <6543@obermui.de> Date: Thu, 2 Jan 2020 07:54:22 +0000 (+0100) Subject: make sure Poster is loaded (#9583) X-Git-Tag: v1.11.0-rc1~38 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5b9283ddfea211ea0129449b6b501703306e5d25;p=gitea.git make sure Poster is loaded (#9583) --- diff --git a/models/issue.go b/models/issue.go index c832b9d014..485be4baef 100644 --- a/models/issue.go +++ b/models/issue.go @@ -1595,6 +1595,11 @@ func UpdateIssueByAPI(issue *Issue) error { Update(issue); err != nil { return err } + + if err := issue.loadPoster(sess); err != nil { + return err + } + if err := issue.addCrossReferences(sess, issue.Poster, true); err != nil { return err }