aboutsummaryrefslogtreecommitdiffstats
path: root/modules/notification/notification.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-12-16 05:57:34 +0800
committertechknowlogick <techknowlogick@gitea.io>2019-12-15 16:57:34 -0500
commit67b316a954b161cac27e16b6455837881919dd94 (patch)
tree46e0278f556447cd9228d63c49a32dacea1f3352 /modules/notification/notification.go
parentc6b3c5bcefde6be4c64f5769a38962c2ce6ad6de (diff)
downloadgitea-67b316a954b161cac27e16b6455837881919dd94.tar.gz
gitea-67b316a954b161cac27e16b6455837881919dd94.zip
Refactor comment (#9330)
* Refactor comment * fix test * improve code
Diffstat (limited to 'modules/notification/notification.go')
-rw-r--r--modules/notification/notification.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/notification/notification.go b/modules/notification/notification.go
index 71d6e79e6d..ab671fa291 100644
--- a/modules/notification/notification.go
+++ b/modules/notification/notification.go
@@ -53,9 +53,9 @@ func NotifyNewIssue(issue *models.Issue) {
}
// NotifyIssueChangeStatus notifies close or reopen issue to notifiers
-func NotifyIssueChangeStatus(doer *models.User, issue *models.Issue, closeOrReopen bool) {
+func NotifyIssueChangeStatus(doer *models.User, issue *models.Issue, actionComment *models.Comment, closeOrReopen bool) {
for _, notifier := range notifiers {
- notifier.NotifyIssueChangeStatus(doer, issue, closeOrReopen)
+ notifier.NotifyIssueChangeStatus(doer, issue, actionComment, closeOrReopen)
}
}