send to only the relay(s) it came from yep.. if its more than one relay its likely to be a leak (or could be the author did that on purpose), but thats ok it will get less leaky over time with more nip70 support rolling out.
Discussion
probably the reply should also be restricted and only be sent to the same relay the restricted root post came from, or it will look weird when others can see your reply but can’t fetch the root.
But it will be messy and you don’t know if you have write access to that relay, maybe restricted posts shouldn’t have replies at all
I receive a bunch of events via proxies or push notifications. Without a clear way of knowing which relay is supposed to have this, posts will just go everywhere.
Also, search relays return protected events as well without any reference for where it came from.
More reasons to better disable replies on restricted posts? Or you think we can still make it work without it looking broken half the time?
What about reactions and zaps? Those should also only go to the right relay.
I don't know how to solve it. Protected events need better specs.
i get that it seems like a mess but.. amethyst knows where the event came from, i can see it in the expert UI. simply send it there. if it was a leak, from proxies/search/etc who cares, it tried. the more clients/relays that implement basic nip70 the less it'll leak in the future
"or it will look weird when others can see your reply but can’t fetch the root"
Could that not be a marketing opportunity for the root and zapbox? Provided a standardised placeholder makes clear that a root indeed exists and what one has to do to be able to see this root (zap this much to this person...).