From d0c8cb5ebad605b939094d10583e4e230cadbc9d Mon Sep 17 00:00:00 2001 From: Shreyans Jain Date: Mon, 24 Mar 2025 23:04:51 +0530 Subject: [PATCH] fix extension tweet import (#343) Signed-off-by: Shreyans Jain --- apps/backend/src/routes/actions.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/backend/src/routes/actions.ts b/apps/backend/src/routes/actions.ts index 706b87ba..581e7787 100644 --- a/apps/backend/src/routes/actions.ts +++ b/apps/backend/src/routes/actions.ts @@ -717,9 +717,8 @@ const actions = fromHono(new Hono<{ Variables: Variables; Bindings: Env }>()) return c.json({ error: "You must be logged in to add content" }, 401); } - const type = body.prefetched - ? Ok(body.prefetched.type) - : typeDecider(body.content); + // Do not perform seperate check for prefetched type, breaks tweet addition from extension + const type = typeDecider(body.content); if (isErr(type)) { return c.json(