diff options
| author | Shreyans Jain <[email protected]> | 2025-03-24 23:04:51 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-03-24 23:04:51 +0530 |
| commit | d0c8cb5ebad605b939094d10583e4e230cadbc9d (patch) | |
| tree | 8d7cf22eeed2426e340011a5a1464253ce8ad32f /apps/backend/src | |
| parent | Merge pull request #345 from CodeWithShreyans/misc-fixes (diff) | |
| download | supermemory-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.ts | 5 |
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( |