don't leave relays feed open
This commit is contained in:
parent
5233d8fe60
commit
8be118db1b
@ -17,7 +17,7 @@
|
||||
|
||||
@media (max-width: 520px) {
|
||||
.zap .header .amount {
|
||||
font-size: 21px;
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,7 @@ export default function useRelaysFeed(pubkey: HexKey) {
|
||||
return x;
|
||||
}, [pubkey]);
|
||||
|
||||
const relays = useSubscription(sub, { leaveOpen: true, cache: true });
|
||||
const relays = useSubscription(sub, { leaveOpen: false, cache: true });
|
||||
const notes = relays.store.notes;
|
||||
const tags = notes.slice(-1)[0]?.tags || [];
|
||||
return tags.reduce((rs, tag) => {
|
||||
|
@ -12,7 +12,6 @@ export default defineMessages({
|
||||
Followers: "Followers",
|
||||
Follows: "Follows",
|
||||
Zaps: "Zaps",
|
||||
ZapsCount: "{n} Zaps",
|
||||
Muted: "Muted",
|
||||
Blocked: "Blocked",
|
||||
Sats: "{n} {n, plural, =1 {sat} other {sats}}",
|
||||
@ -31,5 +30,4 @@ export default defineMessages({
|
||||
SnortSocialNip: `Our very own NIP-05 verification service, help support the development of this site and get a shiny special badge on our site!`,
|
||||
NostrPlebsNip: `Nostr Plebs is one of the first NIP-05 providers in the space and offers a good collection of domains at reasonable prices`,
|
||||
Relays: "Relays",
|
||||
RelaysCount: "{n} Relays",
|
||||
});
|
||||
|
@ -112,14 +112,12 @@
|
||||
"Pages.Posts": "Notas",
|
||||
"Pages.Reactions": "Reacciones",
|
||||
"Pages.Relays": "",
|
||||
"Pages.RelaysCount": "",
|
||||
"Pages.Sats": "{n} {n, plural, =1 {sat} other {sats}}",
|
||||
"Pages.Search": "Búsqueda",
|
||||
"Pages.SearchPlaceholder": "Buscar...",
|
||||
"Pages.Settings": "Configuración",
|
||||
"Pages.SnortSocialNip": "Nuestro servicio de verificación NIP-05, apoya el desarrollo de este proyecto y obtén una apariencia especial en nuestra web!",
|
||||
"Pages.Zaps": "Zaps",
|
||||
"Pages.ZapsCount": "",
|
||||
"Pages.new.Bitcoin": "",
|
||||
"Pages.new.Check": "",
|
||||
"Pages.new.DigitalSignatures": "",
|
||||
|
@ -111,14 +111,12 @@
|
||||
"Pages.Posts": "Publications",
|
||||
"Pages.Reactions": "Réactions",
|
||||
"Pages.Relays": "",
|
||||
"Pages.RelaysCount": "",
|
||||
"Pages.Sats": "{n} {n, plural, =1 {sat} other {sats}}",
|
||||
"Pages.Search": "Chercher",
|
||||
"Pages.SearchPlaceholder": "Chercher...",
|
||||
"Pages.Settings": "Paramètres",
|
||||
"Pages.SnortSocialNip": "Notre propre service de vérification NIP-05, aidez à soutenir le développement de ce site et obtenez un badge spécial brillant sur notre site !",
|
||||
"Pages.Zaps": "Zaps",
|
||||
"Pages.ZapsCount": "",
|
||||
"Pages.new.Bitcoin": "",
|
||||
"Pages.new.Check": "",
|
||||
"Pages.new.DigitalSignatures": "",
|
||||
|
@ -118,7 +118,6 @@
|
||||
"Pages.Settings": "設定",
|
||||
"Pages.SnortSocialNip": "私たち独自のNIP-05認証サービスです。このサイトの開発を支援し、ピカピカの特別なバッジを私たちのサイトで使えるようになります!",
|
||||
"Pages.Zaps": "Zap",
|
||||
"Pages.ZapsCount": "",
|
||||
"Pages.new.Bitcoin": "",
|
||||
"Pages.new.Check": "",
|
||||
"Pages.new.DigitalSignatures": "",
|
||||
|
@ -112,14 +112,12 @@
|
||||
"Pages.Posts": "",
|
||||
"Pages.Reactions": "",
|
||||
"Pages.Relays": "",
|
||||
"Pages.RelaysCount": "",
|
||||
"Pages.Sats": "",
|
||||
"Pages.Search": "",
|
||||
"Pages.SearchPlaceholder": "",
|
||||
"Pages.Settings": "",
|
||||
"Pages.SnortSocialNip": "",
|
||||
"Pages.Zaps": "",
|
||||
"Pages.ZapsCount": "",
|
||||
"Pages.new.Bitcoin": "",
|
||||
"Pages.new.Check": "",
|
||||
"Pages.new.DigitalSignatures": "",
|
||||
|
Loading…
Reference in New Issue
Block a user