jbilcke-hf HF staff commited on
Commit
80b4737
1 Parent(s): 2e5e37b
Files changed (1) hide show
  1. src/app/server/actions/community.ts +10 -0
src/app/server/actions/community.ts CHANGED
@@ -28,6 +28,16 @@ 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.includes("mastiff")
32
+ || prompt.includes("anthro dog")
33
+ || prompt.includes("open-legged")
34
+ || prompt.includes("peeing")
35
+ || prompt.includes("muscular")
36
+ || prompt.includes("exposed")) {
37
+ // nope, there will be no "large muscular mastiff becoming bigger" on the community roll.
38
+ throw new Error(`error`)
39
+ }
40
+
41
  // if the community API is disabled,
42
  // we don't fail, we just mock
43
  if (!apiUrl) {