This repository was archived by the owner on Jan 24, 2026. It is now read-only.
@aaccioly blossom updates#59
Merged
fiatjaf merged 2 commits intoSep 8, 2025
Merged
Conversation
This enhancement allows hooks to make extension-aware decisions for storage, loading, and access control operations. The extension is intelligently derived from MIME type detection, file magic bytes, or URL parsing. Additionally improves MIME type handling by providing fallback to "application/octet-stream" when extension-based detection fails as per BUD-01. BREAKING CHANGE: All Blossom hook functions now require an additional `ext` parameter: - StoreBlob hooks now accept (ctx, sha256, ext, body) instead of (ctx, sha256, body) - LoadBlob hooks now accept (ctx, sha256, ext) instead of (ctx, sha256) - DeleteBlob hooks now accept (ctx, sha256, ext) instead of (ctx, sha256) - RejectGet hooks now accept (ctx, auth, sha256, ext) instead of (ctx, auth, sha256) - RejectDelete hooks now accept (ctx, auth, sha256, ext) instead of (ctx, auth, sha256)
Refine extension derivation logic by ensuring `bd` is not nil before accessing its type.
Owner
Author
|
Sorry for the confusion, thank you for the contribution. |
1l0
pushed a commit
to nosuta/nostr
that referenced
this pull request
Sep 19, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.