feat(wire): add moderation and builtin hooks to post service wiring
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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user