From c37ce625e3a29b53ffe44ee1a13d18b72f2ddff7 Mon Sep 17 00:00:00 2001 From: Luke Vella Date: Wed, 5 Mar 2025 12:42:15 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Remove=20moderation=20init=20log?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/features/moderation/index.ts | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/apps/web/src/features/moderation/index.ts b/apps/web/src/features/moderation/index.ts index 058e6edc5..37fb04e8a 100644 --- a/apps/web/src/features/moderation/index.ts +++ b/apps/web/src/features/moderation/index.ts @@ -3,27 +3,6 @@ import { env } from "@/env"; import { moderateContentWithAI } from "./libs/ai-moderation"; import { containsSuspiciousPatterns } from "./libs/pattern-moderation"; -/** - * Log the moderation status at initialization - * This function is automatically called when this module is imported - */ -function initModeration() { - if (env.MODERATION_ENABLED === "true") { - if (env.OPENAI_API_KEY) { - console.info("✅ Content moderation is ENABLED with AI support"); - } else { - console.info( - "⚠️ Content moderation is ENABLED but missing OPENAI_API_KEY - AI moderation will be skipped", - ); - } - } else { - console.info("ℹ️ Content moderation is DISABLED"); - } -} - -// Initialize moderation and log status -initModeration(); - /** * Moderates content to detect spam, inappropriate content, or abuse * Uses a two-layer approach: