diff --git a/components/footer.js b/components/footer.js index 23ba32628..ecd868f10 100644 --- a/components/footer.js +++ b/components/footer.js @@ -58,7 +58,7 @@ const SocialsPopover = (
nostr @@ -86,6 +86,13 @@ const SocialsPopover = ( pod \ + + swag + + \ } {item?.noteId && ( - window.open(`https://njump.me/${item.noteId}`, '_blank', 'noopener,noreferrer,nofollow')}> + window.open(`https://njump.to/${item.noteId}`, '_blank', 'noopener,noreferrer,nofollow')}> nostr note )} diff --git a/components/notifications.js b/components/notifications.js index 2a8e59bcf..d248472fa 100644 --- a/components/notifications.js +++ b/components/notifications.js @@ -343,14 +343,14 @@ function NostrZap ({ n }) {
{numWithUnits(n.earnedSats)} zap from {// eslint-disable-next-line - + {npub.slice(0, 10)}... } on {note ? ( // eslint-disable-next-line - + {note.slice(0, 12)}... ) : 'nostr'} diff --git a/components/user-header.js b/components/user-header.js index ef30f15e2..17a6aac81 100644 --- a/components/user-header.js +++ b/components/user-header.js @@ -221,7 +221,7 @@ function SocialLink ({ name, id }) { const npub = hexToBech32(id) return ( // eslint-disable-next-line - + {npub.slice(0, 10)}...{npub.slice(-10)} diff --git a/lib/lexical/mdast/visitors/nostr.js b/lib/lexical/mdast/visitors/nostr.js index 3dc003693..241ae347c 100644 --- a/lib/lexical/mdast/visitors/nostr.js +++ b/lib/lexical/mdast/visitors/nostr.js @@ -2,7 +2,7 @@ import { $createTextNode } from 'lexical' import { $createLinkNode, $isLinkNode, $isAutoLinkNode } from '@lexical/link' const NOSTR_ID_PATTERN = /^((npub1|nevent1|nprofile1|note1|naddr1)[02-9ac-hj-np-z]+)$/ -const NJUMP_ORIGIN = 'https://njump.me' +const NJUMP_ORIGIN = 'https://njump.to' function isNostrIdLink (lexicalNode) { const url = lexicalNode.getURL?.() diff --git a/middleware.js b/middleware.js index 926ba496a..fe7ad5e5e 100644 --- a/middleware.js +++ b/middleware.js @@ -110,7 +110,7 @@ export function middleware (request) { // unsafe-inline for styles is not ideal but okay if script-src is using nonces "style-src 'self' a.stacker.news 'unsafe-inline'", "manifest-src 'self'", - 'frame-src www.youtube.com platform.twitter.com njump.me open.spotify.com rumble.com embed.wavlake.com bitcointv.com peertube.tv', + 'frame-src www.youtube.com platform.twitter.com njump.me njump.to open.spotify.com rumble.com embed.wavlake.com bitcointv.com peertube.tv', "connect-src 'self' https: wss:" + devSrc, // disable dangerous plugins like Flash "object-src 'none'", diff --git a/pages/satistics/graphs/[when].js b/pages/satistics/graphs/[when].js index d59725c75..ef0728aef 100644 --- a/pages/satistics/graphs/[when].js +++ b/pages/satistics/graphs/[when].js @@ -70,6 +70,8 @@ export default function Growth ({ ssrData }) {
sats stacked
+ +
sats spent
@@ -80,7 +82,6 @@ export default function Growth ({ ssrData }) {
spend counts
-
) diff --git a/pages/settings/index.js b/pages/settings/index.js index 3fb765172..0e72fa13b 100644 --- a/pages/settings/index.js +++ b/pages/settings/index.js @@ -495,7 +495,7 @@ export default function Settings ({ ssrData }) {
  • if checked and a link is an image, video or can be embedded in another way, we will do it
  • we support embeds from following sites:
    • -
    • njump.me
    • +
    • njump.to
    • youtube.com
    • twitter.com
    • spotify.com
    • diff --git a/pages/stackers/[sub]/[when].js b/pages/stackers/[sub]/[when].js index 0d9cad45d..1acd76c49 100644 --- a/pages/stackers/[sub]/[when].js +++ b/pages/stackers/[sub]/[when].js @@ -94,6 +94,8 @@ export default function Growth ({ ssrData }) {
      sats stacked
      + +
      sats spent
      @@ -104,6 +106,8 @@ export default function Growth ({ ssrData }) {
      unique stackers
      +
      +
      unique spenders
      @@ -114,6 +118,8 @@ export default function Growth ({ ssrData }) {
      spend counts
      +
      + {sub === 'all' &&
      registrations
      }