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 });