0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-22 11:31:13 +01:00

make sure Poster is loaded (#9583)

This commit is contained in:
6543 2020-01-02 08:54:22 +01:00 committed by zeripath
parent b2b10858c6
commit 5b9283ddfe

View file

@ -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
}