]> source.dussan.org Git - gitea.git/commitdiff
make sure Poster is loaded (#9583)
author6543 <6543@obermui.de>
Thu, 2 Jan 2020 07:54:22 +0000 (08:54 +0100)
committerzeripath <art27@cantab.net>
Thu, 2 Jan 2020 07:54:22 +0000 (07:54 +0000)
models/issue.go

index c832b9d014473222f1c0f53d4dd25e0b6eaf24ee..485be4baef7bebf8f380d5a5d8a3c7713e953626 100644 (file)
@@ -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
        }