hzrd149 on Nostr: Code looks good as far as I can tell (I cant read go) but I feel its nessisary to ...
Code looks good as far as I can tell (I cant read go) but I feel its nessisary to caution against the use of too many redirects.
One of the things that makes blossom work so well is the URL format is simple "
http://<server>/<hash>"; and users tend to copy / paste and change the URL in the address bar A LOT more than developer think they do.
So if blossom servers start redirecting more to random URLs ( ie. s3.bucket.aws.com/blobs/personal/25/f4/20240506.jpg ) then users WILL copy that URL and include it in their kind 1 notes thinking its still compatible with blossom. but when the time comes to re-upload those blobs there will be no way to recover those links unless they have the full sha256 in them
Published at
2025-05-13 01:47:32Event JSON
{
"id": "05150013f3f5a00d67a023b965972bc2bd68bda514df11d611b71b6112379273",
"pubkey": "266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5",
"created_at": 1747100852,
"kind": 1,
"tags": [
[
"e",
"431f6a272d2f512eeacbd2b9f2b3565cee291a7567fca8ddb0eb966bee020cb5",
"wss://relay.damus.io/",
"root",
"ee9d979e7e1418a9f7472baf82dc96082a0d4251b77bcb170a6ecec93fadff64"
],
[
"e",
"431f6a272d2f512eeacbd2b9f2b3565cee291a7567fca8ddb0eb966bee020cb5",
"wss://relay.damus.io/",
"reply",
"ee9d979e7e1418a9f7472baf82dc96082a0d4251b77bcb170a6ecec93fadff64"
],
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
"wss://inbox.relays.land"
],
[
"p",
"266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5",
""
],
[
"p",
"ee9d979e7e1418a9f7472baf82dc96082a0d4251b77bcb170a6ecec93fadff64"
],
[
"client",
"noStrudel",
"31990:266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5:1686066542546"
]
],
"content": "Code looks good as far as I can tell (I cant read go) but I feel its nessisary to caution against the use of too many redirects. \nOne of the things that makes blossom work so well is the URL format is simple \"http://\u003cserver\u003e/\u003chash\u003e\" and users tend to copy / paste and change the URL in the address bar A LOT more than developer think they do.\nSo if blossom servers start redirecting more to random URLs ( ie. s3.bucket.aws.com/blobs/personal/25/f4/20240506.jpg ) then users WILL copy that URL and include it in their kind 1 notes thinking its still compatible with blossom. but when the time comes to re-upload those blobs there will be no way to recover those links unless they have the full sha256 in them",
"sig": "2a2a83a57cd900ac8470ab5cabb1fff1bcb0928c25016c646c83e25bac1f59e367a00da54dc4d4a9612185647b98ba569bdf1b33e84b09b4748740a33c38883d"
}