From 4531163e465a7dac880243cb8f48bf2f43a90650 Mon Sep 17 00:00:00 2001 From: dmgnr Date: Tue, 22 Sep 2026 08:56:24 +0700 Subject: [PATCH] hotfix: hide links to hacked channel --- app/(ui)/page.tsx | 21 +++++++++++---------- app/api/live/route.ts | 3 ++- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/app/(ui)/page.tsx b/app/(ui)/page.tsx index 978c187..1059a70 100755 --- a/app/(ui)/page.tsx +++ b/app/(ui)/page.tsx @@ -17,16 +17,17 @@ export default function Home() {
- - Banner - + {/* TEMPORARY: Hacked channel */} + {/* */} + Banner + {/* */}
diff --git a/app/api/live/route.ts b/app/api/live/route.ts index 180e2ef..536ef72 100755 --- a/app/api/live/route.ts +++ b/app/api/live/route.ts @@ -63,7 +63,8 @@ export async function GET(req: NextRequest) { const channelId = process.env.YOUTUBE_CHANNEL_ID; const apiKey = process.env.YOUTUBE_API_KEY; - if (!apiKey || !channelId) return NextResponse.json("none"); + // TEMPORARY: Hacked channel + if (!apiKey || !channelId && true) return NextResponse.json("none"); const response = await youtubeCache.fetch( `https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=${channelId}&eventType=live&type=video&maxResults=1&key=${apiKey}`,