Replying to Avatar hzrd149

Latest PR for #blossom

https://github.com/hzrd149/blossom/pull/13

This defines the the k:10063 event and how clients can use it to repair broken URLs

If your a nostr client dev id like to get your feedback on this one, since its something that needs to be implemented on the client side

Why not define a blossom:// url instead of having clients try to extract the hash?

Reply to this note

Please Login to reply.

Discussion

That would work just as well for blossom, but using the servers domain + sha256 as a URL allows it to be backwards compatible with any web browser or client that renders images from URLs

eliminates the additional changes that would otherwise be required to render files that are normally recognised by .jpg/.png/.webp/.webm/.etc

also, slicing up strings is retardedly easy stuff

m

Makes sense. That is how I've already implemented the blossom integration in my app (just with a different 'kind' for server list - I'll switch it to standard)

Oh wait I've already used the right kind... has this bud been around longer? Somehow I've already implemented this exact flow in my app

Its been a thing since I first wrote the spec. I just haven't written it up in a BUD yet

Make sure its using the "server" tag and not the "r" tag. The first version of the event used the "r" tag and I changed it to something that made a little more sense

hzrd

What app are you working on?

Not quite ready to release yet, but it's a writing platform similar to Obsidian or Logseq. Also supports serving up your content on your own domain as a "blog" of sorts

Cool, can't wait to test it