diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-01-17 22:23:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-17 22:23:22 +0800 |
commit | 82e08a3364195b515a005180c2bdc08e78aac208 (patch) | |
tree | f8ae9f914ab522224e57fcf94675a7f7dd39006e /modules/notification/notification.go | |
parent | 477a80f658a04fc477d800887c55654ac307ff45 (diff) | |
download | gitea-82e08a3364195b515a005180c2bdc08e78aac208.tar.gz gitea-82e08a3364195b515a005180c2bdc08e78aac208.zip |
Refactor notification for indexer (#5111)
* notification for indexer
* use NullNotifier as parent struct
Diffstat (limited to 'modules/notification/notification.go')
-rw-r--r-- | modules/notification/notification.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/notification/notification.go b/modules/notification/notification.go index 6f482e8819..e38c36f7dd 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/indexer" "code.gitea.io/gitea/modules/notification/mail" "code.gitea.io/gitea/modules/notification/ui" ) @@ -25,6 +26,7 @@ func RegisterNotifier(notifier base.Notifier) { func init() { RegisterNotifier(ui.NewNotifier()) RegisterNotifier(mail.NewNotifier()) + RegisterNotifier(indexer.NewNotifier()) } // NotifyCreateIssueComment notifies issue comment related message to notifiers |