diff --git a/src/components/pages/PageMain/PageMain.tsx b/src/components/pages/PageMain/PageMain.tsx index 0b9ec6a..cb273a2 100644 --- a/src/components/pages/PageMain/PageMain.tsx +++ b/src/components/pages/PageMain/PageMain.tsx @@ -91,7 +91,11 @@ export function PageMain(props: {
- {' '} - + {item.title} : diff --git a/src/components/pages/PageMain/constants.ts b/src/components/pages/PageMain/constants.ts index 9fdeb05..8928021 100644 --- a/src/components/pages/PageMain/constants.ts +++ b/src/components/pages/PageMain/constants.ts @@ -26,6 +26,7 @@ export const SUBLINKS = [ title: 'nudes', subtitle: '( ͡° ͜ʖ ͡°)', comment: 'a lot of them, actually', + noPrefetch: true, }, { link: '/cheerio/index.html', diff --git a/src/pages/nudes.ts b/src/pages/nudes.ts index 0a276fc..87982a7 100644 --- a/src/pages/nudes.ts +++ b/src/pages/nudes.ts @@ -1,6 +1,9 @@ import type { APIRoute } from 'astro' +import { html } from '@mtcute/node' import { isBotUserAgent } from '~/backend/utils/bot' +import { telegramNotify } from '../backend/bot/notify' +import { getRequestIp } from '../backend/utils/request' const HTML = ` @@ -23,6 +26,8 @@ export const GET: APIRoute = async (ctx) => { }) } + telegramNotify(html`someone (ip ${getRequestIp(ctx)}) got rickrolled >:3`) + return new Response(null, { status: 302, headers: {