blossom mirror to only take a URL and do its thing, not try to list blobs.

This commit is contained in:
fiatjaf
2026-01-18 14:47:28 -03:00
parent c0b85af734
commit 2a5ce3b249
6 changed files with 45 additions and 118 deletions

2
req.go
View File

@@ -138,7 +138,7 @@ example:
relayUrls,
forcePreAuthSigner,
nostr.PoolOptions{
AuthHandler: func(ctx context.Context, authEvent *nostr.Event) error {
AuthRequiredHandler: func(ctx context.Context, authEvent *nostr.Event) error {
return authSigner(ctx, c, func(s string, args ...any) {
if strings.HasPrefix(s, "authenticating as") {
cleanUrl, _ := strings.CutPrefix(