|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
// Copyright 2018 The Gitea Authors. All rights reserved.
|
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
|
|
package ui
|
|
|
|
|
package uinotification
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
@ -14,6 +14,7 @@ import (
|
|
|
|
|
"code.gitea.io/gitea/modules/container"
|
|
|
|
|
"code.gitea.io/gitea/modules/graceful"
|
|
|
|
|
"code.gitea.io/gitea/modules/log"
|
|
|
|
|
"code.gitea.io/gitea/modules/notification"
|
|
|
|
|
"code.gitea.io/gitea/modules/notification/base"
|
|
|
|
|
"code.gitea.io/gitea/modules/queue"
|
|
|
|
|
)
|
|
|
|
@ -32,6 +33,12 @@ type (
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func Init() error {
|
|
|
|
|
notification.RegisterNotifier(NewNotifier())
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var _ base.Notifier = ¬ificationService{}
|
|
|
|
|
|
|
|
|
|
// NewNotifier create a new notificationService notifier
|