From 1e637b064d741700ea34a2360227a0da6003ff4a Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Sat, 20 Aug 2022 15:32:04 -0400 Subject: [PATCH] Redirect Favicon requests to Twitter --- src/server.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/server.ts b/src/server.ts index c844425..e619da5 100644 --- a/src/server.ts +++ b/src/server.ts @@ -251,6 +251,11 @@ export const cacheWrapper = async ( }); } + /* Redirect Favicon to Twitter's */ + if (cacheUrl.pathname === '/favicon.ico') { + return Response.redirect(`${Constants.TWITTER_ROOT}/favicon.ico`, 302); + } + /* Some TwitFix APIs will never be available in FixTweet for privacy or design choice reasons.