chore: Update translations
This commit is contained in:
parent
ee31726961
commit
a88fda2a22
@ -17,7 +17,10 @@ export default function useThreadFeed(link: NostrLink) {
|
||||
});
|
||||
sub.withFilter().link(link);
|
||||
if (root) {
|
||||
sub.withFilter().link(root).relay(rootRelays ?? []);
|
||||
sub
|
||||
.withFilter()
|
||||
.link(root)
|
||||
.relay(rootRelays ?? []);
|
||||
}
|
||||
const grouped = [link, ...allEvents].reduce(
|
||||
(acc, v) => {
|
||||
@ -29,7 +32,8 @@ export default function useThreadFeed(link: NostrLink) {
|
||||
);
|
||||
|
||||
for (const v of Object.values(grouped)) {
|
||||
sub.withFilter()
|
||||
sub
|
||||
.withFilter()
|
||||
.kinds([EventKind.TextNote])
|
||||
.replyToLink(v)
|
||||
.relay(rootRelays ?? []);
|
||||
@ -79,10 +83,13 @@ export default function useThreadFeed(link: NostrLink) {
|
||||
const relays = system.relayCache.getFromCache(rootEvent.pubkey);
|
||||
|
||||
if (relays) {
|
||||
const readRelays = randomSample(relays.relays.filter(a => a.settings.read).map(a => a.url), 3);
|
||||
const readRelays = randomSample(
|
||||
relays.relays.filter(a => a.settings.read).map(a => a.url),
|
||||
3,
|
||||
);
|
||||
setRootRelays(readRelays);
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
}, [link, root, store?.length]);
|
||||
|
@ -53,8 +53,4 @@ export const MarkdownCodeRegex = /(```.+?```)/gms;
|
||||
/**
|
||||
* Public metadata relays
|
||||
*/
|
||||
export const MetadataRelays = [
|
||||
"wss://purplepag.es/",
|
||||
"wss://relay.nostr.band/",
|
||||
"wss://relay.snort.social/"
|
||||
]
|
||||
export const MetadataRelays = ["wss://purplepag.es/", "wss://relay.nostr.band/", "wss://relay.snort.social/"];
|
||||
|
@ -103,7 +103,7 @@ export class OutboxModel extends BaseRequestRouter {
|
||||
return {
|
||||
...filter,
|
||||
authors: keysOnPickedRelay,
|
||||
relays: appendDedupe(filter.relays, [a])
|
||||
relays: appendDedupe(filter.relays, [a]),
|
||||
} as ReqFilter;
|
||||
});
|
||||
const noRelays = dedupe(topRelays.filter(a => a.relays.length === 0).map(a => a.key));
|
||||
|
@ -19,10 +19,7 @@ export class ProfileLoaderService extends BackgroundLoader<CachedMetadata> {
|
||||
|
||||
override buildSub(missing: string[]): RequestBuilder {
|
||||
const sub = new RequestBuilder(`profiles`);
|
||||
sub.withFilter()
|
||||
.kinds([EventKind.SetMetadata])
|
||||
.authors(missing)
|
||||
.relay(["wss://purplepag.es/"]);
|
||||
sub.withFilter().kinds([EventKind.SetMetadata]).authors(missing).relay(["wss://purplepag.es/"]);
|
||||
return sub;
|
||||
}
|
||||
|
||||
|
@ -176,7 +176,7 @@ export class RequestFilterBuilder {
|
||||
get filter() {
|
||||
return {
|
||||
...this.#filter,
|
||||
relays: this.#relays.size > 0 ? [...this.#relays] : undefined
|
||||
relays: this.#relays.size > 0 ? [...this.#relays] : undefined,
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -60,6 +60,6 @@ export abstract class BaseRequestRouter implements RequestRouter {
|
||||
return acc;
|
||||
}, new Map<string, Array<ReqFilter>>());
|
||||
|
||||
return [...allSplit.values()].flat()
|
||||
return [...allSplit.values()].flat();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user