feat(moderation): add user profile content moderation for avatars, covers, and bios
This commit is contained in:
@@ -137,15 +137,18 @@ func ProvideModerationHooks(
|
||||
postAIService *service.PostAIService,
|
||||
postRepo repository.PostRepository,
|
||||
commentRepo repository.CommentRepository,
|
||||
userRepo repository.UserRepository,
|
||||
sensitiveService service.SensitiveService,
|
||||
cfg *config.Config,
|
||||
) *hook.ModerationHooks {
|
||||
strictMode := cfg.OpenAI.StrictModeration
|
||||
|
||||
moderationHooks := hook.NewModerationHooks(
|
||||
postAIService,
|
||||
nil,
|
||||
sensitiveService,
|
||||
postRepo,
|
||||
commentRepo,
|
||||
userRepo,
|
||||
strictMode,
|
||||
"***",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user