tangled
alpha
login
or
join now
skywatch.blue
/
skywatch-automod
7
fork
atom
A tool for parsing traffic on the jetstream and applying a moderation workstream based on regexp based rules
7
fork
atom
overview
issues
pulls
pipelines
Fixed stupid mistake in global allow listing
D. Scarnecchia
5 months ago
ba7c41ba
7cf3180b
+4
-4
3 changed files
expand all
collapse all
unified
split
src
checkHandles.ts
checkPosts.ts
checkProfiles.ts
+1
-1
src/checkHandles.ts
reviewed
···
13
13
time: number,
14
14
) => {
15
15
// Check if DID is whitelisted
16
16
-
if (!GLOBAL_ALLOW.includes(did)) {
16
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
reviewed
···
12
12
import { GLOBAL_ALLOW } from "./constants.js";
13
13
14
14
export const checkPosts = async (post: Post[]) => {
15
15
-
if (!GLOBAL_ALLOW.includes(post[0].did)) {
15
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
reviewed
···
17
17
const lang = await getLanguage(description);
18
18
19
19
// Check if DID is whitelisted
20
20
-
if (!GLOBAL_ALLOW.includes(did)) {
20
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
134
-
if (!GLOBAL_ALLOW.includes(did)) {
134
134
+
if (GLOBAL_ALLOW.includes(did)) {
135
135
logger.warn(
136
136
{ process: "CHECKDISPLAYNAME", did, time, displayName, description },
137
137
"Global AllowListed DID",