pjv on Nostr: Should gossip also be fetching metadata for npub mentions within the text of notes? ...
Should gossip also be fetching metadata for npub mentions within the text of notes? As far as I can tell it currently doesn't - if the npub metadata has already been fetched gossip renders a NIP-05 name but if it has not, it renders a truncated npub as a link. i guess you'd want to limit how many of these you did so if someone posted a note with a thousand npubs it wouldn't DDOS you, but in the case where there is just a few mentions i think it would be a good addition.
Published at
2023-02-24 11:24:45Event JSON
{
"id": "dffd84dc2a90e74f2c175da74eee0f336e4b8ad5fef0b51fec48d17a557a5ff6",
"pubkey": "0c99877612291bd818b3dd92f2852b823557b3744c3cb10470865c7a56a4929b",
"created_at": 1677237885,
"kind": 1,
"tags": [
[
"p",
"ee11a5dff40c19a555f41fe42b48f00e618c91225622ae37b6c2bb67b76c4e49"
],
[
"p",
"82341f882b6eabcd2ba7f1ef90aad961cf074af15b9ef44a09f9d2a8fbfbe6a2"
],
[
"e",
"0000292f23bb529cb893c8c45b88ce648e6ff2ebe1a42bf47a8f8a402e366b77",
"wss://nostr-pub.wellorder.net",
"root"
]
],
"content": "Should gossip also be fetching metadata for npub mentions within the text of notes? As far as I can tell it currently doesn't - if the npub metadata has already been fetched gossip renders a NIP-05 name but if it has not, it renders a truncated npub as a link. i guess you'd want to limit how many of these you did so if someone posted a note with a thousand npubs it wouldn't DDOS you, but in the case where there is just a few mentions i think it would be a good addition.",
"sig": "17f052f4d3c1ba6cc8e8c9595d5c6ed5eaef59bf96d86cee57f24ea430492aa291582588da0fe07b543eb4534200fbeb335d4556c6ff6fbc09d26ef9d7ead653"
}