aboutsummaryrefslogtreecommitdiffstats
path: root/modules/notification
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2021-11-24 02:47:03 +0000
committerGitHub <noreply@github.com>2021-11-24 10:47:03 +0800
commit21f4401f3e04885da782d77329dedaa35e820997 (patch)
tree20d9117894a1522da74a482bd7a5e3f359b3d18b /modules/notification
parent3d996c85a5a56a0c680c80653813ba361c21cc4a (diff)
downloadgitea-21f4401f3e04885da782d77329dedaa35e820997.tar.gz
gitea-21f4401f3e04885da782d77329dedaa35e820997.zip
Use correct Sender on webhook change title (#17791)
As title, thanks to @mscherer for pointing out the incorrect code.
Diffstat (limited to 'modules/notification')
-rw-r--r--modules/notification/webhook/webhook.go2
1 files changed, 1 insertions, 1 deletions
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),
})
}