diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-09-05 21:00:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 13:00:52 +0000 |
commit | f064d716c3972f38249533602b41f8a68dcffc27 (patch) | |
tree | d2c51331ad74cba1efbc915607fe869c094b22f7 /routers | |
parent | 65588b732c087e191a8f03e240fdfc5dcfc24199 (diff) | |
download | gitea-f064d716c3972f38249533602b41f8a68dcffc27.tar.gz gitea-f064d716c3972f38249533602b41f8a68dcffc27.zip |
Move feed notification service layer (#26908)
Extract from #22266
Diffstat (limited to 'routers')
-rw-r--r-- | routers/init.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/init.go b/routers/init.go index f311b4f95d..6369a39754 100644 --- a/routers/init.go +++ b/routers/init.go @@ -18,7 +18,6 @@ import ( "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/markup" "code.gitea.io/gitea/modules/markup/external" - "code.gitea.io/gitea/modules/notification" "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/ssh" "code.gitea.io/gitea/modules/storage" @@ -38,6 +37,7 @@ import ( "code.gitea.io/gitea/services/auth/source/oauth2" "code.gitea.io/gitea/services/automerge" "code.gitea.io/gitea/services/cron" + feed_service "code.gitea.io/gitea/services/feed" indexer_service "code.gitea.io/gitea/services/indexer" "code.gitea.io/gitea/services/mailer" mailer_incoming "code.gitea.io/gitea/services/mailer/incoming" @@ -119,7 +119,7 @@ func InitWebInstalled(ctx context.Context) { mailer.NewContext(ctx) mustInit(cache.NewContext) - notification.NewContext() + mustInit(feed_service.Init) mustInit(uinotification.Init) mustInit(archiver.Init) |