feat: default to publishing posts only to outbox/inbox relays

This commit is contained in:
codytseng
2025-08-30 13:06:41 +08:00
parent 489ce67343
commit 9759e3e750
4 changed files with 6 additions and 30 deletions

View File

@@ -649,9 +649,9 @@ export function NostrProvider({ children }: { children: React.ReactNode }) {
relays = specifiedRelayUrls
} else {
const relayList = await client.fetchRelayList(event.pubkey)
relays = (relayList?.write.slice(0, 10) ?? [])
.concat(Array.from(new Set(_additionalRelayUrls)) ?? [])
.concat(client.getCurrentRelayUrls())
relays = (relayList?.write.slice(0, 10) ?? []).concat(
Array.from(new Set(_additionalRelayUrls)) ?? []
)
}
if (!relays.length) {