A tool for parsing traffic on the jetstream and applying a moderation workstream based on regexp based rules

Fixed stupid mistake in global allow listing

+1 -1
src/checkHandles.ts
··· 13 13 time: number, 14 14 ) => { 15 15 // Check if DID is whitelisted 16 - if (!GLOBAL_ALLOW.includes(did)) { 16 + if (GLOBAL_ALLOW.includes(did)) { 17 17 logger.warn( 18 18 { process: "CHECKHANDLE", did, handle, time }, 19 19 "Global AllowListed DID",
+1 -1
src/checkPosts.ts
··· 12 12 import { GLOBAL_ALLOW } from "./constants.js"; 13 13 14 14 export const checkPosts = async (post: Post[]) => { 15 - if (!GLOBAL_ALLOW.includes(post[0].did)) { 15 + if (GLOBAL_ALLOW.includes(post[0].did)) { 16 16 logger.warn( 17 17 { process: "CHECKPOSTS", did: post[0].did, atURI: post[0].atURI }, 18 18 "Global AllowListed DID",
+2 -2
src/checkProfiles.ts
··· 17 17 const lang = await getLanguage(description); 18 18 19 19 // Check if DID is whitelisted 20 - if (!GLOBAL_ALLOW.includes(did)) { 20 + if (GLOBAL_ALLOW.includes(did)) { 21 21 logger.warn( 22 22 { process: "CHECKDESCRIPTION", did, time, displayName, description }, 23 23 "Global AllowListed DID", ··· 131 131 description: string, 132 132 ) => { 133 133 // Check if DID is whitelisted 134 - if (!GLOBAL_ALLOW.includes(did)) { 134 + if (GLOBAL_ALLOW.includes(did)) { 135 135 logger.warn( 136 136 { process: "CHECKDISPLAYNAME", did, time, displayName, description }, 137 137 "Global AllowListed DID",