Update moderation.ts

This commit is contained in:
Face 2025-05-30 16:45:31 +03:00
parent 2bedc629ee
commit 9307319693

View file

@ -14,6 +14,8 @@ export async function isNameAppropriate(name: string): Promise<boolean> {
} }
const result = await response.json(); const result = await response.json();
console.log('Checked name with moderation service:', name, " result: ", result.appropriate);
return result.appropriate !== false; return result.appropriate !== false;
} catch (error) { } catch (error) {
console.error('Failed to check name with moderation service:', error); console.error('Failed to check name with moderation service:', error);