summaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-01-02 08:54:22 +0100
committerzeripath <art27@cantab.net>2020-01-02 07:54:22 +0000
commit5b9283ddfea211ea0129449b6b501703306e5d25 (patch)
tree195957a108d59ea3144c0c174d452213be471e94 /models/issue.go
parentb2b10858c631dea6b7ac457f8e71c61b27bf4934 (diff)
downloadgitea-5b9283ddfea211ea0129449b6b501703306e5d25.tar.gz
gitea-5b9283ddfea211ea0129449b6b501703306e5d25.zip
make sure Poster is loaded (#9583)
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/models/issue.go b/models/issue.go
index c832b9d014..485be4baef 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
}