Marco now publishes new place photos to the public submission relay at wss://submit.nostr.kosmos.org and reads from it as a built-in untrusted relay. The moderation service reviews submissions and promotes approved, author-signed events to wss://nostr.kosmos.org, so the existing relay-trust model keeps submitted content hidden until it is also seen on a trusted relay. A user's own uploads stay visible immediately.
This also tightens kind-5 deletion handling per NIP-09: a deletion is only honored when the kind-5 event's author matches the referenced event's author, both in the store/provenance path of NostrDataService and in applyDeletions() for contribution/activity grouping. Unknown referenced authors are treated as no match (fail-safe), and the author map is capped at 10,000 entries.
Changes:
app/services/nostr-data.js: submission relay as default write relay and as an untrusted configured read relay (never added to requiredReadRelays/trustedRelays), plus the kind-5 author check.
app/utils/contributions.js: NIP-09 author rule in applyDeletions().
doc/nostr/relay-trust.md: document the submission relay and the kind-5 author rule.
Tests for relay defaults/exclusions, trust behavior, and the kind-5 author check.
Verification: pnpm lint and pnpm test (464 tests) pass.
Marco now publishes new place photos to the public submission relay at `wss://submit.nostr.kosmos.org` and reads from it as a built-in untrusted relay. The moderation service reviews submissions and promotes approved, author-signed events to `wss://nostr.kosmos.org`, so the existing relay-trust model keeps submitted content hidden until it is also seen on a trusted relay. A user's own uploads stay visible immediately.
This also tightens kind-5 deletion handling per NIP-09: a deletion is only honored when the kind-5 event's author matches the referenced event's author, both in the store/provenance path of `NostrDataService` and in `applyDeletions()` for contribution/activity grouping. Unknown referenced authors are treated as no match (fail-safe), and the author map is capped at 10,000 entries.
Changes:
- `app/services/nostr-data.js`: submission relay as default write relay and as an untrusted configured read relay (never added to `requiredReadRelays`/`trustedRelays`), plus the kind-5 author check.
- `app/utils/contributions.js`: NIP-09 author rule in `applyDeletions()`.
- `doc/nostr/relay-trust.md`: document the submission relay and the kind-5 author rule.
- Tests for relay defaults/exclusions, trust behavior, and the kind-5 author check.
Verification: `pnpm lint` and `pnpm test` (464 tests) pass.
Part of raucao/marco#97.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Marco now publishes new place photos to the public submission relay at
wss://submit.nostr.kosmos.organd reads from it as a built-in untrusted relay. The moderation service reviews submissions and promotes approved, author-signed events towss://nostr.kosmos.org, so the existing relay-trust model keeps submitted content hidden until it is also seen on a trusted relay. A user's own uploads stay visible immediately.This also tightens kind-5 deletion handling per NIP-09: a deletion is only honored when the kind-5 event's author matches the referenced event's author, both in the store/provenance path of
NostrDataServiceand inapplyDeletions()for contribution/activity grouping. Unknown referenced authors are treated as no match (fail-safe), and the author map is capped at 10,000 entries.Changes:
app/services/nostr-data.js: submission relay as default write relay and as an untrusted configured read relay (never added torequiredReadRelays/trustedRelays), plus the kind-5 author check.app/utils/contributions.js: NIP-09 author rule inapplyDeletions().doc/nostr/relay-trust.md: document the submission relay and the kind-5 author rule.Verification:
pnpm lintandpnpm test(464 tests) pass.Part of raucao/marco#97.