From 2574cb3bbe91d606542ec22ea542acd3b267df73 Mon Sep 17 00:00:00 2001 From: MeowcaTheoRange Date: Thu, 25 Apr 2024 13:49:53 -0500 Subject: [PATCH] less sharp --- src/app/jams/oauth/code/route.ts | 2 +- src/app/jams/oauth/login/route.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/jams/oauth/code/route.ts b/src/app/jams/oauth/code/route.ts index 9893042..2a97fc2 100644 --- a/src/app/jams/oauth/code/route.ts +++ b/src/app/jams/oauth/code/route.ts @@ -84,7 +84,7 @@ export async function GET(request: NextRequest) { username: tUserExists.acct, admin: false, url: tUserExists.url, - banned: JSONt1List.some(fbinst => instance.includes(fbinst)), // If user's domain is on tier1, start user banned + banned: JSONt1List.includes(instance), // If user's domain is on tier1, start user banned joined: Date.now() } as UserTable; diff --git a/src/app/jams/oauth/login/route.ts b/src/app/jams/oauth/login/route.ts index adfd93f..c7154be 100644 --- a/src/app/jams/oauth/login/route.ts +++ b/src/app/jams/oauth/login/route.ts @@ -34,11 +34,11 @@ export async function GET(request: NextRequest) { const JSONFnList = fnList.split("\n"); const JSONSsList = ssList.split("\n"); - if (JSONSsList.some(fbinst => instance.includes(fbinst))) return new Response('https://seirdy.one/pb/spammy-subdomains.txt', { + if (JSONSsList.includes(instance)) return new Response('https://seirdy.one/pb/spammy-subdomains.txt', { status: 403 }); - if (JSONFnList.some(fbinst => instance.includes(fbinst))) return new Response('https://seirdy.one/pb/FediNuke.txt', { + if (JSONFnList.includes(instance)) return new Response('https://seirdy.one/pb/FediNuke.txt', { status: 403 });