mleku on Nostr: yeah, i had to think about it a bit and i'm not sure maybe my code now passes that ...
yeah, i had to think about it a bit and i'm not sure maybe my code now passes that test anyway because it doesn't tombstone this event kind for replacement, only for actually delete, so it should either way allow old versions to be reinstated after the latest one is deleted, the new one is a tombstone so it's sorta like rolling back a branch to a past commit and force pushing, except you can't put it back, but anyway that analogy is not exactly perfect haha, but you get the idea, my main interest was in allowing rollback because most likely any new replacement after that is going to have different content anyway, that's why you would delete a version and roll back
Published at
2025-01-23 19:11:57Event JSON
{
"id": "7d0f7a7cc42ebb21a1638ccb34bc69a775c426a2b1731c9f5030cae2e900f8cb",
"pubkey": "4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"created_at": 1737659517,
"kind": 1,
"tags": [
[
"e",
"d0602842848c44ce48a1d210257421581ca78fdc6d7e8bd0453f9f0914e60cee",
"wss://nostr.einundzwanzig.space/",
"root",
"4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f"
],
[
"e",
"384d2698671e3378833b6596c2eafc07a0aab307e2e8eba10632e99f24b72be1",
"wss://nostr.wine/",
"reply",
"ee11a5dff40c19a555f41fe42b48f00e618c91225622ae37b6c2bb67b76c4e49"
],
[
"p",
"4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f"
],
[
"p",
"ee11a5dff40c19a555f41fe42b48f00e618c91225622ae37b6c2bb67b76c4e49"
],
[
"client",
"noStrudel",
"31990:266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5:1686066542546"
]
],
"content": "yeah, i had to think about it a bit and i'm not sure maybe my code now passes that test anyway because it doesn't tombstone this event kind for replacement, only for actually delete, so it should either way allow old versions to be reinstated after the latest one is deleted, the new one is a tombstone so it's sorta like rolling back a branch to a past commit and force pushing, except you can't put it back, but anyway that analogy is not exactly perfect haha, but you get the idea, my main interest was in allowing rollback because most likely any new replacement after that is going to have different content anyway, that's why you would delete a version and roll back",
"sig": "4a2d972d3730d9657498e12c5f8da5b70f3a9a1189b3b8c7f4d3716a0f0a25cac583ad2bb22d216a4a2c8bc9ff984288c6eff25caa90fb57821db5ba496af8bb"
}