Community shares are published only to the sharer outbox — invisible on community relays #21
Labels
No labels
bug
discussion
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
edufeed/edufeed-app#21
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found while verifying #8 with a real share (laoc42 sharing a 31922 event into a community).
createCommunityRepostspublishes the kind 16 repost viapublishEventOptimistic(signedEvent, communityPubkeys)with nocommunityEventand noadditionalRelays. The resulting relay set is: the sharer's outbox write relays + the tagged community pubkey's READ relays (communities usually have no kind 10002 → nothing) + app relays for kind 16 (none).Verified on live relays: the repost exists on the sharer's personal relays (haven.laoc.xyz, theforest.nostr1.com) but NOT on relay.edufeed.org — so every community surface that reads from the communikey/edufeed relays cannot see the share. The UI still shows "(Shared)" from the optimistic local add.
Fix: include the communikey app relays and the target communities' own relays (from their kind 10222) in the repost publish.
Related UX defect (same dialog): the checkbox next to a community does not reflect the current shared state — a shared community shows "(Shared – click to unshare)" with an UNCHECKED box, because the checkbox encodes "pending change", not state. It should be checked when shared and toggle from there.
Fixed on branch
fix/community-share-visibility(with unit tests, verified live on the reported share). Full causal chain of Steffen's report ("shared event only visible in the community calendar"):created_at, so a fresh share of an older event sank below the home feed's top-15 recency cut. Resolved items now carry_sharedAt(newest share time) and the feed ranks by activity time.loadByCommunitynow fetches h-tagged reposts and resolves their referenced events, so shares survive reloads and appear for other members.Verified anonymously on a fresh load of the community page: the shared hackathOERn event now appears in Recent Activity and Upcoming Events.
Confirmed via the #8 retest. Merged to dev.