Avatar
Oren ☂️
3316e2d88ff91e1089c75feedcd8baa2258b45455a3b156af617d7ec79b45fe5
Software Developleb https://github.com/oren-z0 CTO at RITREK.com Check out: https://niot.space https://ln2.email

And the most vile and offensive text written in this file is this piece of inefficient “reduce”:

export const reservedSubdomains: Record = [

...atpSpecific,

...commonlyReserved,

...famousAccounts,

...slurs,

].reduce((acc, cur) => {

return {

...acc,

[cur]: true,

}

}, {})

Why not use “Object.fromEntries(…)”??

https://github.com/holgern/pynostr/issues/14

Is this how nostr subscriptions implemented by relays - ignoring events that were already sent to me when I create a new subscription?

Or is this just a bug on my side?

According to nip01 each subscription should stand for itself and not care which events were sent by other subscriptions (even on the same websocket). Am I missing something?

#dev #development #nostr #NostrDev #nip01 #nip-01