From 5cf7b61f4550fbfd17b57fc2bf2b2d2983ad07a5 Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Tue, 16 Aug 2022 19:57:07 -0400 Subject: [PATCH] Fix crash with pxtwitter.com .mp4/.jpg links --- src/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.ts b/src/server.ts index 7b6a530..e45af59 100644 --- a/src/server.ts +++ b/src/server.ts @@ -33,7 +33,7 @@ const statusRequest = async ( if ( Constants.DEPRECATED_DOMAIN_LIST.includes(url.hostname) && - BigInt(id) > Constants.DEPRECATED_DOMAIN_EPOCH + BigInt(id?.match(/\d{2,20}/g)?.[0] || 0) > Constants.DEPRECATED_DOMAIN_EPOCH ) { console.log('Request to deprecated domain'); flags.deprecated = true;