hodlbod on Nostr: one point oh only, I have some beautiful parsing logic to try to guess at 1.0 support ...
one point oh only, I have some beautiful parsing logic to try to guess at 1.0 support since the nip hasn't been merged yet:
```
export const hasNegentropy = (url: string) => {
const p = relaysByUrl.get().get(url)?.profile
if (p?.supported_nips?.includes(77)) return true
if (p?.software?.includes('strfry') && !p?.version?.match(/^0\./)) return true
return false
}
```
Published at
2024-09-30 23:26:45Event JSON
{
"id": "e3e24b07bcf88d049a6ed29e61106f637858b570a8d6d7aa7fc53308fd72b973",
"pubkey": "97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322",
"created_at": 1727738805,
"kind": 1,
"tags": [
[
"p",
"cdee943cbb19c51ab847a66d5d774373aa9f63d287246bb59b0827fa5e637400",
"wss://relay.sharegap.net/",
"Biz"
],
[
"p",
"78ce6faa72264387284e647ba6938995735ec8c7d5c5a65737e55130f026307d",
"wss://bitcoinmaximalists.online/",
"zap.store"
],
[
"p",
"7cc328a08ddb2afdf9f9be77beff4c83489ff979721827d628a542f32a247c0e",
"wss://nos.lol/",
"cloud fodder"
],
[
"e",
"6591ac7cff5dea9f9665e953651e529983f34b13ad22a6289ab39986b44f1125",
"wss://nos.lol/",
"root",
"7cc328a08ddb2afdf9f9be77beff4c83489ff979721827d628a542f32a247c0e"
],
[
"client",
"Coracle",
"31990:97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322:1685968093690"
]
],
"content": "one point oh only, I have some beautiful parsing logic to try to guess at 1.0 support since the nip hasn't been merged yet:\n\n```\nexport const hasNegentropy = (url: string) =\u003e {\n const p = relaysByUrl.get().get(url)?.profile\n\n if (p?.supported_nips?.includes(77)) return true\n if (p?.software?.includes('strfry') \u0026\u0026 !p?.version?.match(/^0\\./)) return true\n\n return false\n}\n```",
"sig": "9e2ddf4d1cc7a33fd2a58893396464f795be97c5630a602813e93aa06e875169a9b156d588befa1ee163714a012ab40fb1d73f03bb3d7b89c96a6e6a904c4ddd"
}