mikedilger on Nostr: To me it is only a small annoyance that when I get a URL in a descriptor I have to ...
To me it is only a small annoyance that when I get a URL in a descriptor I have to check the last part to see if it already has an extension, and if not add one matching the original uploaded local filename. If I use BUT-01 GET /<sha256> I don't have to check anything I can just shove the extension after the hash, and maybe I should have done that instead. But I would change it to say that the URL in the descriptor is expected to have a relevent extension (then I have go to change chorus!)
Published at
2024-11-21 23:50:08Event JSON
{
"id": "000025d3b0d62c4e15744d61bc238fd80f5be0489906ff3e821128a3bb57665a",
"pubkey": "ee11a5dff40c19a555f41fe42b48f00e618c91225622ae37b6c2bb67b76c4e49",
"created_at": 1732233008,
"kind": 1,
"tags": [
[
"p",
"266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5"
],
[
"p",
"d49a9023a21dba1b3c8306ca369bf3243d8b44b8f0b6d1196607f7b0990fa8df"
],
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c"
],
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"
],
[
"e",
"0924af70fadb25f47ee0a6c8e16a44432f738a6924d16cdfb684774bc04274a2",
"wss://nos.lol/",
"root"
],
[
"e",
"7de06f20bb0161cc61bd1ce3881e34d1417941c0407090d498697be7e2ed678d",
"wss://nostrue.com/",
"reply",
"266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5"
],
[
"nonce",
"16909515400900427772",
"16"
]
],
"content": "To me it is only a small annoyance that when I get a URL in a descriptor I have to check the last part to see if it already has an extension, and if not add one matching the original uploaded local filename. If I use BUT-01 GET /\u003csha256\u003e I don't have to check anything I can just shove the extension after the hash, and maybe I should have done that instead. But I would change it to say that the URL in the descriptor is expected to have a relevent extension (then I have go to change chorus!)",
"sig": "a7b18074718a223bf2540a34833bf9126793ffe2c48cbe3ca03af7272d613d94a89c1fd7f8c6b7ebd0142440a597ea49aeea5f1030cd87ed8c624e58436c4bb1"
}