From f87a7da32e0be726f567a4468fbb0f0b90659faa Mon Sep 17 00:00:00 2001 From: Gigi Date: Mon, 13 Oct 2025 00:05:44 +0200 Subject: [PATCH] feat: switch Nostr gateway to ants.sh - Replace njump.me and search.dergigi.com with ants.sh - Use ants.sh/p/ for profiles and ants.sh/e/ for events - All existing helper functions continue to work with new gateway --- src/config/nostrGateways.ts | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/src/config/nostrGateways.ts b/src/config/nostrGateways.ts index ee37e2db..d52721da 100644 --- a/src/config/nostrGateways.ts +++ b/src/config/nostrGateways.ts @@ -2,32 +2,26 @@ * Nostr gateway URLs for viewing events and profiles on the web */ -export const NOSTR_GATEWAY = { - /** Primary gateway for general nostr content (events, notes, addresses) */ - PRIMARY: 'https://njump.me', - - /** Search gateway for profiles and events */ - SEARCH: 'https://search.dergigi.com', -} as const +export const NOSTR_GATEWAY = 'https://ants.sh' as const /** - * Get a profile URL on the search gateway + * Get a profile URL on the gateway */ export function getProfileUrl(npub: string): string { - return `${NOSTR_GATEWAY.SEARCH}/p/${npub}` + return `${NOSTR_GATEWAY}/p/${npub}` } /** - * Get an event URL on the search gateway + * Get an event URL on the gateway */ export function getEventUrl(nevent: string): string { - return `${NOSTR_GATEWAY.SEARCH}/e/${nevent}` + return `${NOSTR_GATEWAY}/e/${nevent}` } /** - * Get a general nostr link on the primary gateway + * Get a general nostr link on the gateway */ export function getNostrUrl(identifier: string): string { - return `${NOSTR_GATEWAY.PRIMARY}/${identifier}` + return `${NOSTR_GATEWAY}/${identifier}` }