mirror of
https://github.com/go-gitea/gitea.git
synced 2025-09-03 22:37:01 +09:00
fix: register bots notifier when enabled only
This commit is contained in:
@ -41,8 +41,10 @@ func NewContext() {
|
||||
RegisterNotifier(webhook.NewNotifier())
|
||||
RegisterNotifier(action.NewNotifier())
|
||||
RegisterNotifier(mirror.NewNotifier())
|
||||
if setting.Bots.Enabled {
|
||||
RegisterNotifier(bots.NewNotifier())
|
||||
}
|
||||
}
|
||||
|
||||
// NotifyNewWikiPage notifies creating new wiki pages to notifiers
|
||||
func NotifyNewWikiPage(ctx context.Context, doer *user_model.User, repo *repo_model.Repository, page, comment string) {
|
||||
|
Reference in New Issue
Block a user