mirror of
https://github.com/go-gitea/gitea
synced 2025-09-06 00:38:28 +00:00
fix: register bots notifier when enabled only
This commit is contained in:
@@ -41,7 +41,9 @@ func NewContext() {
|
||||
RegisterNotifier(webhook.NewNotifier())
|
||||
RegisterNotifier(action.NewNotifier())
|
||||
RegisterNotifier(mirror.NewNotifier())
|
||||
RegisterNotifier(bots.NewNotifier())
|
||||
if setting.Bots.Enabled {
|
||||
RegisterNotifier(bots.NewNotifier())
|
||||
}
|
||||
}
|
||||
|
||||
// NotifyNewWikiPage notifies creating new wiki pages to notifiers
|
||||
|
Reference in New Issue
Block a user