mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-05 19:28:25 +00:00
NIP-CC lets a listing declare, in its `r` tags, the relays its finds should be logged to, and Amethyst honours that when publishing one -- but the engagement watcher only ever asked the cache owner's inbox relays and whatever relay the listing happened to arrive on. A cache whose log relays are neither of those had its write and its read land on disjoint relay sets: the logs sat exactly where the listing said to look, and the cache screen reported "No one has logged this cache yet". Adds the declared relays to relayUrlsForReactions() rather than swapping them in, so the existing sources still apply. Two tests cover it; both fail without the change. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>