fix extension tweet import (#343)

Signed-off-by: Shreyans Jain <shreyans@shreyans.sh>
This commit is contained in:
Shreyans Jain 2025-03-24 23:04:51 +05:30 • committed by GitHub
parent d07d0c0928
commit d0c8cb5eba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(