]> source.dussan.org Git - gitea.git/commitdiff
Use correct Sender on webhook change title (#17791)
authorGusted <williamzijl7@hotmail.com>
Wed, 24 Nov 2021 02:47:03 +0000 (02:47 +0000)
committerGitHub <noreply@github.com>
Wed, 24 Nov 2021 02:47:03 +0000 (10:47 +0800)
As title, thanks to @mscherer for pointing out the incorrect code.

modules/notification/webhook/webhook.go

index de6e19a06551c01549ce83df0a5c229240dc9fda..d5a947d9ac166818efc5369f94a1664ea15c710a 100644 (file)
@@ -214,7 +214,7 @@ func (m *webhookNotifier) NotifyIssueChangeTitle(doer *models.User, issue *model
                        },
                        Issue:      convert.ToAPIIssue(issue),
                        Repository: convert.ToRepo(issue.Repo, mode),
-                       Sender:     convert.ToUser(issue.Poster, nil),
+                       Sender:     convert.ToUser(doer, nil),
                })
        }