mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-29 01:41:22 +00:00
The previous extractHandle only stripped exact "https://x.com/" / "https://twitter.com/" prefixes (and one leading "@"), so common URL formats produced garbage: https://www.x.com/vansh -> "https:" x.com/vansh -> "x.com" https://mobile.twitter.com/foo -> "https:" That junk handle was then passed straight to the Grok call, wasting an LLM request and returning unusable research to the user. Rewrite the parser to use the URL constructor (mirroring the more robust parseXAccount in apps/web/app/api/onboarding/account-status/route.ts) so any subdomain or bare-domain form works. Validate the resulting handle against the 1-15 char alphanumeric+underscore rule before invoking the model; fail fast with a 400 instead of burning a model call on a bad input. |
||
|---|---|---|
| .. | ||
| browser-extension | ||
| docs | ||
| mcp | ||
| memory-graph-playground | ||
| raycast-extension | ||
| web | ||