mirror of
https://github.com/dergigi/boris.git
synced 2026-02-03 14:14:31 +01:00
Merge pull request #37 from dergigi/njump-to
Change default nostr gateway to njump.to
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* Nostr gateway URLs for viewing events and profiles on the web
|
||||
*/
|
||||
|
||||
export const NOSTR_GATEWAY = 'https://nostr.at' as const
|
||||
export const NOSTR_GATEWAY = 'https://njump.to' as const
|
||||
export const SEARCH_PORTAL = 'https://ants.sh' as const
|
||||
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ export function getEventUrl(nevent: string): string {
|
||||
* Automatically detects if it's a profile (npub/nprofile) or event (note/nevent/naddr)
|
||||
*/
|
||||
export function getNostrUrl(identifier: string): string {
|
||||
// nostr.at uses simple /{identifier} format for all types
|
||||
// njump.to uses simple /{identifier} format for all types
|
||||
return `${NOSTR_GATEWAY}/${identifier}`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user