From f3c8c03c4ea00d9f90a6238a938fe84046d697e5 Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Thu, 16 Nov 2023 19:52:03 -0500 Subject: [PATCH] Fix direct media functionality with human user agents --- src/realms/twitter/routes/status.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/realms/twitter/routes/status.ts b/src/realms/twitter/routes/status.ts index 9cb24bf..d3560a5 100644 --- a/src/realms/twitter/routes/status.ts +++ b/src/realms/twitter/routes/status.ts @@ -119,7 +119,7 @@ export const statusRequest = async (c: Context) => { Since we obviously have no media to give the user, we'll just redirect to the Tweet. Embeds will return as usual to bots as if direct media was never specified. */ - if (!isBotUA && !flags.api) { + if (!isBotUA && !flags.api && !flags.direct) { const baseUrl = getBaseRedirectUrl(c); return c.redirect(`${baseUrl}/${handle || 'i'}/status/${id}`, 302);