feat(wire): add moderation and builtin hooks to post service wiring
All checks were successful
Build Backend / build (push) Successful in 3m57s
Build Backend / build-docker (push) Successful in 4m43s

Add wire providers for ModerationHooks and BuiltinHooks, injecting them
into PostService via dependency injection. Hooks are passed as blank
identifiers to trigger their initialization and registration side effects.
This commit is contained in:
lafay
2026-03-21 02:53:38 +08:00
parent 1a48bb440c
commit 639ee55696
3 changed files with 13 additions and 1 deletions

View File

@@ -111,6 +111,8 @@ func ProvidePostService(
cacheBackend cache.Cache,
txManager repository.TransactionManager,
hookManager *hook.Manager,
_ *hook.ModerationHooks,
_ *hook.BuiltinHooks,
) service.PostService {
return service.NewPostService(postRepo, systemMessageService, gorseClient, postAIService, cacheBackend, txManager, hookManager)
}