buzz icon indicating copy to clipboard operation
buzz copied to clipboard

feat(media): add sharded compatibility reads

Open bradseiler opened this issue 4 months ago • 0 comments

Summary

Add deterministic hash-leading, community-scoped media key helpers and make every relay read/probe path prefer the sharded object while falling back to the legacy flat key only on absence. Public Blossom URLs and writes remain unchanged.

Related issue

None found; requested in the linked Buzz channel thread.

Testing

  • bin/cargo test -p buzz-media (110 passed, 1 live-MinIO test ignored)
  • bin/cargo test -p buzz-relay --lib handlers::imeta (11 passed)
  • bin/cargo clippy --workspace --all-targets -- -D warnings
  • bin/cargo fmt --check

Stack

  1. This PR: compatibility readers; safe to deploy with legacy writes.
  2. Upload-record and storage-index compatibility.
  3. Configurable legacy/dual/sharded writes.

bradseiler avatar Jul 31 '26 21:07 bradseiler