Files
amethyst/amethyst
Claude 58efb3b1ec fix(account): always include broadcasting relays in non-private sends
The ShortNotePost compose path went through
`signAndComputeBroadcast` → `computeRelayListToBroadcast(event)`, which
only mixed in the user's broadcasting relays indirectly via
`outboxRelays` — and only when `author == userProfile()`. Two real
paths dropped the broadcast list entirely:

  * Anonymous posts (`signAnonymouslyAndBroadcast`) sign with a
    throwaway pubkey, so `author != userProfile()` and the branch that
    pulls in `outboxRelays.flow.value` is skipped.
  * `MetadataEvent` / `AdvertisedRelayListEvent` returned early with
    `followPlusAllMineWithIndex + availableRelays`, neither of which
    includes the broadcast list.

Hoist `broadcastRelayList.flow.value` to the top of the function (after
the `GiftWrapEvent` / `WrappedEvent` early returns that defines what
"private" means) and seed it into every non-private return path. Sets
dedupe so the regular path stays unchanged in the common case where
broadcasting relays were already reachable through `outboxRelays`.
2026-05-13 02:53:40 +00:00
..
2024-06-24 14:13:55 -04:00