From 21f4401f3e04885da782d77329dedaa35e820997 Mon Sep 17 00:00:00 2001 From: Gusted Date: Wed, 24 Nov 2021 02:47:03 +0000 Subject: [PATCH] Use correct Sender on webhook change title (#17791) As title, thanks to @mscherer for pointing out the incorrect code. --- modules/notification/webhook/webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/notification/webhook/webhook.go b/modules/notification/webhook/webhook.go index de6e19a065..d5a947d9ac 100644 --- a/modules/notification/webhook/webhook.go +++ b/modules/notification/webhook/webhook.go @@ -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), }) }