khatru: the accioly blossom redirect patch, reworked.

This commit is contained in:
fiatjaf
2025-06-10 16:43:05 -03:00
parent 50a753504d
commit 027d016d97
4 changed files with 84 additions and 11 deletions

View File

@@ -5,6 +5,7 @@ import (
"fmt"
"io"
"net/http"
"net/url"
"strings"
"fiatjaf.com/nostr/eventstore/badger"
@@ -32,10 +33,10 @@ func main() {
fmt.Println("storing", sha256, len(body))
return nil
}
bl.LoadBlob = func(ctx context.Context, sha256 string) (io.ReadSeeker, error) {
bl.LoadBlob = func(ctx context.Context, sha256 string) (io.ReadSeeker, *url.URL, error) {
fmt.Println("loading", sha256)
blob := strings.NewReader("aaaaa")
return blob, nil
return blob, nil, nil
}
fmt.Println("running on :3334")