Files
raucao 748bc626a8
CI / Lint (pull_request) Successful in 59s
CI / Test (pull_request) Successful in 1m24s
Release Drafter / Update release notes draft (pull_request) Successful in 16s
Publish and consume x tags on kind 360 place photos
Emit top-level x tags for the primary media and thumbnail SHA-256 hashes (with the primary also inside imeta) when publishing. Parsed photos expose the hash set, and photo deletion prefers it over extracting hashes from Blossom URLs, keeping URL extraction as a fallback for legacy events.
2026-11-27 19:23:16 +04:00

1.5 KiB

Notes

  • NIP-73 (External Content IDs) is the basis for the i tag mechanism. osm: is now defined by NIP-73 itself (merged 2026-11-16 via PR #2224, commit bec0fc8); our place NIPs only use that scheme. https://github.com/nostr-protocol/nips/blob/master/73.md
  • Rejected alternative: add an i tag to NIP-68 (kind 20) picture events. Chosen: a dedicated kind 360. NIP-68/92/94 remain background (92 imeta is load-bearing for kind 360).
  • Places NIP-XX draft PR: https://github.com/nostr-protocol/nips/pull/927 — closed/unmerged; useful as prior art / reviewer prehistory, do not cite as precedent.
  • NPM package for generating multi-resolution geotags: https://sandwichfarm.github.io/nostr-geotags/#md:nostr-geotags
  • AppleSauce docs for AI agents: https://applesauce.build/introduction/mcp-server.html
  • Live data (wss://nostr.kosmos.org, 2026-11-11): 149 kind 360 events, all i=osm:<type>:<id>, none with a k tag, all with empty .content.
  • Kind 360 carries the media SHA-256 as top-level x tags (primary media and thumbnail, with the primary also inside imeta) when known (issue #122). Top-level placement follows NIP-68, which already does this "to make them queryable"; hashes nested only in imeta (NIP-71) cannot be filtered on. Marco emits the tags from the hashes returned by blossom.upload, and parses them back for deletion so URLs without an embedded hash still work, including the thumbnail blob. Spec: doc/nostr/nip-place-photos.md.