mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-07 02:58:11 +00:00
fix extension tweet import (#343)
Signed-off-by: Shreyans Jain <shreyans@shreyans.sh>
This commit is contained in:
parent
d07d0c0928
commit
d0c8cb5eba
1 changed files with 2 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue