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