mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-06 10:17:37 +02:00
Refactor notification for indexer (#5111)
* notification for indexer * use NullNotifier as parent struct
This commit is contained in:
1 parent
477a80f658
commit
82e08a3364
8 files changed
+75
-15
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user