jbilcke-hf HF staff commited on
Commit
d1182ea
1 Parent(s): ab34e50

I see you, man

Browse files
src/app/server/actions/community.ts CHANGED
@@ -28,6 +28,10 @@ export async function postToCommunity({
28
  console.log(`user attempted to use bad words! their original prompt is: ${before}`)
29
  }
30
 
 
 
 
 
31
  // if the community API is disabled,
32
  // we don't fail, we just mock
33
  if (!apiUrl) {
 
28
  console.log(`user attempted to use bad words! their original prompt is: ${before}`)
29
  }
30
 
31
+ if (prompt.toLocaleLowerCase().includes("male muscle") || prompt.toLocaleLowerCase().includes("muscle growth")) {
32
+ throw new Error("unknown erorr")
33
+ }
34
+
35
  // if the community API is disabled,
36
  // we don't fail, we just mock
37
  if (!apiUrl) {