make sure Poster is loaded (#9583)

pull/9586/head
6543 5 years ago committed by zeripath
parent b2b10858c6
commit 5b9283ddfe
  1. 5
      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
}

Loading…
Cancel
Save