aboutsummaryrefslogtreecommitdiff
path: root/apps/backend/src
diff options
context:
space:
mode:
authorShreyans Jain <[email protected]>2025-03-24 23:04:51 +0530
committerGitHub <[email protected]>2025-03-24 23:04:51 +0530
commitd0c8cb5ebad605b939094d10583e4e230cadbc9d (patch)
tree8d7cf22eeed2426e340011a5a1464253ce8ad32f /apps/backend/src
parentMerge pull request #345 from CodeWithShreyans/misc-fixes (diff)
downloadsupermemory-d0c8cb5ebad605b939094d10583e4e230cadbc9d.tar.xz
supermemory-d0c8cb5ebad605b939094d10583e4e230cadbc9d.zip
fix extension tweet import (#343)
Signed-off-by: Shreyans Jain <[email protected]>
Diffstat (limited to 'apps/backend/src')
-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(