aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/backend/src/routes/actions.ts5
1 files 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(