Oddbean new post about | logout
 If you don't rug yourself are you even a nostr dev?

Starting today and for about a week by blossom server cdn.hzrd149.com is going to be down (rugged) which means all of the images I've posted so far will be broken... unless your using a client that is aware of blossom servers 😀 

I just pushed an update to next.nostrudel.ninja so when it detects that an image failed to load and the image has the sha256 hash in the url it will start going down the users blossom server list to find the image

It works something like this
1. Image fails to load
2. Does image have a sha256 hash in the url?
3. Get other users blossom server list (using pubkey in kind 1) 
4. Replace the image urls host with the next server on the list

The end result is that anyone using next.nostrudel.ninja will still be able to see my pictures because they are still hosted on cdn.satellite.earth and media-server.slidestr.net

https://cdn.hzrd149.com/72cb99b689b4cfe1a9fb6937f779f3f9c65094bf0e6ac72a8f8261efa96653f5.png

I added a few helper methods to "blossom-client-sdk" for any other clients that want to use the users blossom server list to handle broken images https://github.com/hzrd149/blossom-client-sdk#handling-broken-images