mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-13 18:44:22 +01:00
Fix account URL lookup with @ in the URL
This commit is contained in:
@@ -38,7 +38,7 @@ function extractBech32(value: string): string | undefined {
|
||||
// Extract from URL, eg `https://njump.me/npub1q3sle0kvfsehgsuexttt3ugjd8xdklxfwwkh559wxckmzddywnws6cd26p`.
|
||||
case 'http:':
|
||||
case 'https:':
|
||||
bech32 = uri.pathname.slice(1);
|
||||
bech32 = uri.pathname.replace(/^\/@?/, '');
|
||||
break;
|
||||
}
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user