Adds top-level x tags carrying the SHA-256 of the files a kind 360 event references, so Blossom blob stores and UIs can associate uploads with place-photo events.
The NIP draft now documents one x tag per referenced file — the primary media and its thumbnail — with the primary hash also inside imeta to anchor which of the hashes is primary. The hashes are queryable via #x, and clients may use the full set for blob indexing and lifecycle (for example, thumbnail blobs no longer look orphaned).
Marco emits both hashes from the values returned by blossom.upload and parses them back, so photo deletion now uses the event's x hashes instead of scraping Blossom URLs, keeping URL extraction only as a fallback for legacy events without x.
Tests: pnpm test passes (481 tests) and pnpm lint is clean.
Not included in this PR: checking via #x that a blob is no longer referenced by another event before deleting it (documented as a SHOULD in the NIP).
Closes #122.
Adds top-level `x` tags carrying the SHA-256 of the files a kind 360 event references, so Blossom blob stores and UIs can associate uploads with place-photo events.
The NIP draft now documents one `x` tag per referenced file — the primary media and its thumbnail — with the primary hash also inside `imeta` to anchor which of the hashes is primary. The hashes are queryable via `#x`, and clients may use the full set for blob indexing and lifecycle (for example, thumbnail blobs no longer look orphaned).
Marco emits both hashes from the values returned by `blossom.upload` and parses them back, so photo deletion now uses the event's `x` hashes instead of scraping Blossom URLs, keeping URL extraction only as a fallback for legacy events without `x`.
Tests: `pnpm test` passes (481 tests) and `pnpm lint` is clean.
Not included in this PR: checking via `#x` that a blob is no longer referenced by another event before deleting it (documented as a SHOULD in the NIP).
Add top-level x tags carrying the SHA-256 of the primary media and thumbnail, following NIP-68's queryable-hash pattern. The imeta x anchors which hash is primary; parsing, deletion, querying and examples are covered.
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.
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.
Closes #122.
Adds top-level
xtags carrying the SHA-256 of the files a kind 360 event references, so Blossom blob stores and UIs can associate uploads with place-photo events.The NIP draft now documents one
xtag per referenced file — the primary media and its thumbnail — with the primary hash also insideimetato anchor which of the hashes is primary. The hashes are queryable via#x, and clients may use the full set for blob indexing and lifecycle (for example, thumbnail blobs no longer look orphaned).Marco emits both hashes from the values returned by
blossom.uploadand parses them back, so photo deletion now uses the event'sxhashes instead of scraping Blossom URLs, keeping URL extraction only as a fallback for legacy events withoutx.Tests:
pnpm testpasses (481 tests) andpnpm lintis clean.Not included in this PR: checking via
#xthat a blob is no longer referenced by another event before deleting it (documented as a SHOULD in the NIP).