Move feed notification service layer (#26908)

Extract from #22266
This commit is contained in:
Lunny Xiao 2023-09-05 21:00:52 +08:00 committed by GitHub
parent 65588b732c
commit f064d716c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 13 deletions

View file

@ -15,8 +15,8 @@ import (
"code.gitea.io/gitea/models/unittest"
user_model "code.gitea.io/gitea/models/user"
"code.gitea.io/gitea/modules/notification"
"code.gitea.io/gitea/modules/notification/action"
"code.gitea.io/gitea/modules/util"
"code.gitea.io/gitea/services/feed"
"github.com/stretchr/testify/assert"
)
@ -25,7 +25,7 @@ var notifySync sync.Once
func registerNotifier() {
notifySync.Do(func() {
notification.RegisterNotifier(action.NewNotifier())
notification.RegisterNotifier(feed.NewNotifier())
})
}