mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Fix account URL lookup with @ in the URL
This commit is contained in:
parent
385127761d
commit
8f704e4ea2
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ function extractBech32(value: string): string | undefined {
|
||||||
// Extract from URL, eg `https://njump.me/npub1q3sle0kvfsehgsuexttt3ugjd8xdklxfwwkh559wxckmzddywnws6cd26p`.
|
// Extract from URL, eg `https://njump.me/npub1q3sle0kvfsehgsuexttt3ugjd8xdklxfwwkh559wxckmzddywnws6cd26p`.
|
||||||
case 'http:':
|
case 'http:':
|
||||||
case 'https:':
|
case 'https:':
|
||||||
bech32 = uri.pathname.slice(1);
|
bech32 = uri.pathname.replace(/^\/@?/, '');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue