feat(moderation): add manual content review system with three-tier AI moderation
Add admin comment moderation endpoints (single and batch) and introduce a three-tier moderation system (pass/review/block) for content flagged by AI. Content with unclear violations is now held for manual review instead of being auto-rejected. Deleted the legacy audit_service.go in favor of the unified hook-based moderation system.
This commit is contained in:
@@ -552,7 +552,9 @@ func (r *Router) setupRoutes() {
|
||||
admin.GET("/comments", r.adminCommentHandler.GetCommentList)
|
||||
admin.GET("/comments/:id", r.adminCommentHandler.GetCommentDetail)
|
||||
admin.DELETE("/comments/:id", r.adminCommentHandler.DeleteComment)
|
||||
admin.PUT("/comments/:id/moderate", r.adminCommentHandler.ModerateComment)
|
||||
admin.POST("/comments/batch-delete", r.adminCommentHandler.BatchDeleteComments)
|
||||
admin.POST("/comments/batch-moderate", r.adminCommentHandler.BatchModerateComments)
|
||||
admin.GET("/comments/post/:postId", r.adminCommentHandler.GetPostComments)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user