forked from kevadesu/forgejo
parent
65588b732c
commit
f064d716c3
5 changed files with 14 additions and 13 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue