summaryrefslogtreecommitdiffstats
path: root/modules/notification/notification.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-01-13 22:42:55 +0800
committerLauris BH <lauris@nix.lv>2019-01-13 16:42:55 +0200
commitbeab2df1227f9b7e556aa5716d94feb3a3e2088e (patch)
treeef72c59cc4e3ab7ccaa29ffc5de4d3a4278e348e /modules/notification/notification.go
parente5228b8369f7162026b6fa6c1a8a0f07b92d85c7 (diff)
downloadgitea-beab2df1227f9b7e556aa5716d94feb3a3e2088e.tar.gz
gitea-beab2df1227f9b7e556aa5716d94feb3a3e2088e.zip
Refactor mail notification (#5110)
* mail notification implement interface * fix file comment year * use NullNotifier as parent struct of notifiers
Diffstat (limited to 'modules/notification/notification.go')
-rw-r--r--modules/notification/notification.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/notification/notification.go b/modules/notification/notification.go
index 3f3579394e..6f482e8819 100644
--- a/modules/notification/notification.go
+++ b/modules/notification/notification.go
@@ -8,6 +8,7 @@ import (
"code.gitea.io/git"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/notification/base"
+ "code.gitea.io/gitea/modules/notification/mail"
"code.gitea.io/gitea/modules/notification/ui"
)
@@ -23,6 +24,7 @@ func RegisterNotifier(notifier base.Notifier) {
func init() {
RegisterNotifier(ui.NewNotifier())
+ RegisterNotifier(mail.NewNotifier())
}
// NotifyCreateIssueComment notifies issue comment related message to notifiers