mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-29 12:02:55 +09:00
@ -12,7 +12,6 @@ import (
|
||||
user_model "code.gitea.io/gitea/models/user"
|
||||
"code.gitea.io/gitea/modules/git"
|
||||
"code.gitea.io/gitea/modules/log"
|
||||
"code.gitea.io/gitea/modules/notification/action"
|
||||
"code.gitea.io/gitea/modules/notification/base"
|
||||
"code.gitea.io/gitea/modules/repository"
|
||||
)
|
||||
@ -25,11 +24,6 @@ func RegisterNotifier(notifier base.Notifier) {
|
||||
notifiers = append(notifiers, notifier)
|
||||
}
|
||||
|
||||
// NewContext registers notification handlers
|
||||
func NewContext() {
|
||||
RegisterNotifier(action.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) {
|
||||
for _, notifier := range notifiers {
|
||||
|
Reference in New Issue
Block a user