From 44a0a497f5fd05cce0ed2846ee5c2a6a5879a634 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Thu, 2 Jan 2020 06:23:08 +0100 Subject: [PATCH] make sure Poster is loaded --- models/issue.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/models/issue.go b/models/issue.go index c832b9d014473..485be4baef7be 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 }