this repo has no description

chore: Adding bail mechanics to atmostphere_dev feed

Signed-off-by: Nick Gerakines <12125+ngerakines@users.noreply.github.com>

+19
+19
etc/atmosphere_dev.rhai
··· 4 4 return false; 5 5 } 6 6 7 + const BAIL = [ 8 + // For obvious reasons, keep the feed to PG 9 + "nsfw", 10 + // Used a lot with tags like "dogsofbluesky" 11 + "ofbluesky", 12 + "ofbsky", 13 + ]; 14 + 7 15 const KEYWORDS = [ 8 16 ["atproto"], 9 17 ["feed", "generator"], ··· 29 37 let text = event?.commit?.record?.text ?? ""; 30 38 let text_normalized = text.to_lower(); 31 39 40 + for token in BAIL { 41 + if token in text_normalized { 42 + return false; 43 + } 44 + } 45 + 32 46 for needle in KEYWORDS { 33 47 if sequence_matches(needle, text_normalized) { 34 48 return build_aturi(event); ··· 62 76 "app.bsky.richtext.facet#tag" => { 63 77 let tag = feature?["tag"] ?? ""; 64 78 let tag_normalized = tag.to_lower(); 79 + for token in BAIL { 80 + if token in tag_normalized { 81 + return false; 82 + } 83 + } 65 84 for needle in TAGS { 66 85 if sequence_matches(needle, tag_normalized) { 67 86 return build_aturi(event);