personal modifications
This commit is contained in:
parent
0c7ada6d5b
commit
fc28e20811
5 changed files with 13 additions and 7 deletions
|
|
@ -311,7 +311,7 @@
|
|||
const entity = dest.slice(6).toLowerCase();
|
||||
try {
|
||||
nip19.decode(entity);
|
||||
return { type: "link", href: `https://njump.me/${entity}`, label };
|
||||
return { type: "link", href: `https://nostr.basspistol.org/${entity}`, label };
|
||||
} catch {
|
||||
return { type: "text", value: label };
|
||||
}
|
||||
|
|
@ -642,7 +642,7 @@
|
|||
>
|
||||
{:else}
|
||||
<a
|
||||
href="https://njump.me/{inline.entity}"
|
||||
href="https://nostr.basspistol.org/{inline.entity}"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="text-accent break-all hover:underline">{inline.label}</a
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ function decodeEntity(entity: string): ChatToken | null {
|
|||
return {
|
||||
type: "entity",
|
||||
entity,
|
||||
href: `https://njump.me/${entity}`,
|
||||
href: `https://nostr.basspistol.org/${entity}`,
|
||||
label: shortNostrEntity(entity),
|
||||
id: decoded.type === "note" ? decoded.data : decoded.data.id,
|
||||
};
|
||||
|
|
@ -165,7 +165,7 @@ function decodeEntity(entity: string): ChatToken | null {
|
|||
return {
|
||||
type: "entity",
|
||||
entity,
|
||||
href: `https://njump.me/${entity}`,
|
||||
href: `https://nostr.basspistol.org/${entity}`,
|
||||
label: shortNostrEntity(entity),
|
||||
};
|
||||
} catch {
|
||||
|
|
|
|||
|
|
@ -221,7 +221,7 @@
|
|||
>
|
||||
This forum is built on
|
||||
<a
|
||||
href="https://njump.me"
|
||||
href="https://nostr.basspistol.org"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="underline hover:text-neutral-700 dark:hover:text-neutral-200"
|
||||
|
|
|
|||
|
|
@ -119,3 +119,9 @@ body {
|
|||
--color-secondary: #ffaf25;
|
||||
--color-secondary-hover: #e69e1a;
|
||||
}
|
||||
|
||||
/* setto*/
|
||||
|
||||
a[href*="room/h1"] {
|
||||
display:none
|
||||
}
|
||||
|
|
|
|||
|
|
@ -204,12 +204,12 @@
|
|||
</span>
|
||||
{/if}
|
||||
<a
|
||||
href="https://njump.me/{npub}"
|
||||
href="https://nostr.basspistol.org/{npub}"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="text-accent text-sm hover:underline"
|
||||
>
|
||||
View on njump ↗
|
||||
View on Bpistle ↗
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue