personal modifications

This commit is contained in:
sakrecoer 2026-09-22 15:21:51 +02:00
parent 0c7ada6d5b
commit fc28e20811
5 changed files with 13 additions and 7 deletions

View file

@ -311,7 +311,7 @@
const entity = dest.slice(6).toLowerCase(); const entity = dest.slice(6).toLowerCase();
try { try {
nip19.decode(entity); nip19.decode(entity);
return { type: "link", href: `https://njump.me/${entity}`, label }; return { type: "link", href: `https://nostr.basspistol.org/${entity}`, label };
} catch { } catch {
return { type: "text", value: label }; return { type: "text", value: label };
} }
@ -642,7 +642,7 @@
> >
{:else} {:else}
<a <a
href="https://njump.me/{inline.entity}" href="https://nostr.basspistol.org/{inline.entity}"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
class="text-accent break-all hover:underline">{inline.label}</a class="text-accent break-all hover:underline">{inline.label}</a

View file

@ -157,7 +157,7 @@ function decodeEntity(entity: string): ChatToken | null {
return { return {
type: "entity", type: "entity",
entity, entity,
href: `https://njump.me/${entity}`, href: `https://nostr.basspistol.org/${entity}`,
label: shortNostrEntity(entity), label: shortNostrEntity(entity),
id: decoded.type === "note" ? decoded.data : decoded.data.id, id: decoded.type === "note" ? decoded.data : decoded.data.id,
}; };
@ -165,7 +165,7 @@ function decodeEntity(entity: string): ChatToken | null {
return { return {
type: "entity", type: "entity",
entity, entity,
href: `https://njump.me/${entity}`, href: `https://nostr.basspistol.org/${entity}`,
label: shortNostrEntity(entity), label: shortNostrEntity(entity),
}; };
} catch { } catch {

View file

@ -221,7 +221,7 @@
> >
This forum is built on This forum is built on
<a <a
href="https://njump.me" href="https://nostr.basspistol.org"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
class="underline hover:text-neutral-700 dark:hover:text-neutral-200" class="underline hover:text-neutral-700 dark:hover:text-neutral-200"

View file

@ -119,3 +119,9 @@ body {
--color-secondary: #ffaf25; --color-secondary: #ffaf25;
--color-secondary-hover: #e69e1a; --color-secondary-hover: #e69e1a;
} }
/* setto*/
a[href*="room/h1"] {
display:none
}

View file

@ -204,12 +204,12 @@
</span> </span>
{/if} {/if}
<a <a
href="https://njump.me/{npub}" href="https://nostr.basspistol.org/{npub}"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
class="text-accent text-sm hover:underline" class="text-accent text-sm hover:underline"
> >
View on njump ↗ View on Bpistle ↗
</a> </a>
</div> </div>