mirror of
https://github.com/go-gitea/gitea.git
synced 2025-04-18 00:47:48 -04:00
fix: register bots notifier when enabled only
This commit is contained in:
parent
e37b3911d8
commit
6f5c3feb2d
@ -41,7 +41,9 @@ func NewContext() {
|
|||||||
RegisterNotifier(webhook.NewNotifier())
|
RegisterNotifier(webhook.NewNotifier())
|
||||||
RegisterNotifier(action.NewNotifier())
|
RegisterNotifier(action.NewNotifier())
|
||||||
RegisterNotifier(mirror.NewNotifier())
|
RegisterNotifier(mirror.NewNotifier())
|
||||||
RegisterNotifier(bots.NewNotifier())
|
if setting.Bots.Enabled {
|
||||||
|
RegisterNotifier(bots.NewNotifier())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// NotifyNewWikiPage notifies creating new wiki pages to notifiers
|
// NotifyNewWikiPage notifies creating new wiki pages to notifiers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user