mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-26 06:52:45 +00:00
make sure Poster is loaded (#9583)
This commit is contained in:
parent
b2b10858c6
commit
5b9283ddfe
|
@ -1595,6 +1595,11 @@ func UpdateIssueByAPI(issue *Issue) error {
|
||||||
Update(issue); err != nil {
|
Update(issue); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := issue.loadPoster(sess); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
if err := issue.addCrossReferences(sess, issue.Poster, true); err != nil {
|
if err := issue.addCrossReferences(sess, issue.Poster, true); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue