mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-04-11 05:09:36 +02:00
use users relays when viewing notes
This commit is contained in:
parent
92b950a0e6
commit
02057060f8
@ -68,8 +68,8 @@ const tabs = [
|
||||
|
||||
function useUserBestOutbox(pubkey: string, count: number = 4) {
|
||||
const mailbox = useUserMailboxes(pubkey);
|
||||
const relays = useReadRelays(mailbox?.outbox);
|
||||
const sorted = relayScoreboardService.getRankedRelays(relays);
|
||||
const relays = useReadRelays();
|
||||
const sorted = relayScoreboardService.getRankedRelays(mailbox?.outbox.size ? mailbox?.outbox : relays);
|
||||
return !count ? sorted : sorted.slice(0, count);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user