hzrd149 on Nostr: yes, although I'm not sure whats the best way to detect if a note is too long. number ...
yes, although I'm not sure whats the best way to detect if a note is too long. number of characters is the simplest but doesn't take into account of images or other embedded notes
using the height of the html element itself would be best, but to do that I have to render it first then measure it. which causes the timeline to jump around
I haven't put much effort into it though because it hasn't effected me too much
Published at
2025-01-23 20:22:47Event JSON
{
"id": "22556cb600fccba824bbf4683dd1b82f39edd0b028ce249e70d6321ce4ae9494",
"pubkey": "266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5",
"created_at": 1737663767,
"kind": 1,
"tags": [
[
"e",
"052a1cdb56e70ad538bf447855a45d543be7b5c522960c7ef9d60bffc1562ca5",
"",
"root"
],
[
"e",
"94e5f8cc644c186493e34c488325344ae046047046bbfda8cc7d38426a50fc20",
"nostr-idb://cache-relay",
"reply",
"a008def15796fba9a0d6fab04e8fd57089285d9fd505da5a83fe8aad57a3564d"
],
[
"p",
"c6603b0f1ccfec625d9c08b753e4f774eaf7d1cf2769223125b5fd4da728019e"
],
[
"p",
"3f770d65d3a764a9c5cb503ae123e62ec7598ad035d836e2a810f3877a745b24"
],
[
"p",
"a008def15796fba9a0d6fab04e8fd57089285d9fd505da5a83fe8aad57a3564d"
]
],
"content": "yes, although I'm not sure whats the best way to detect if a note is too long. number of characters is the simplest but doesn't take into account of images or other embedded notes\nusing the height of the html element itself would be best, but to do that I have to render it first then measure it. which causes the timeline to jump around\n\nI haven't put much effort into it though because it hasn't effected me too much",
"sig": "6086a8b8b2a710f2e8c1c1161ccd0730fb3da452cc5a7123a99109c3386b7752206e4d58c7e1f1005c7180988413f6b1a20f77fb93d673eb9eeb29438d389c96"
}