jb55 on Nostr: I'm about to implement replaceable events in nostrdb and just had an idea that fix ...
I'm about to implement replaceable events in nostrdb and just had an idea that fix the contact-list unfollow problem for good:
when replacing a note with a new note, generate a "delta", which is the difference between the old and new note (tags, contents, etc).
This delta can be quite small, so it can be done automatically for all replaceable events.
This would enable any nostrdb app (damus ios, notedeck, etc) to "self-heal". it could detect simulatenous follow and unfollows and discard the unfollows.
You could also use this to show diffs in longform posts, and follow/unfollow histories for all users in your local db.
Published at
2025-01-01 21:41:05Event JSON
{
"id": "37fbc666a6332f89c91b7501936792ed0e06590c4206387eb0f983b75d50ffc8",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"created_at": 1735767665,
"kind": 1,
"tags": [
[
"client",
"Damus Notedeck"
]
],
"content": "I'm about to implement replaceable events in nostrdb and just had an idea that fix the contact-list unfollow problem for good:\n\nwhen replacing a note with a new note, generate a \"delta\", which is the difference between the old and new note (tags, contents, etc).\n\nThis delta can be quite small, so it can be done automatically for all replaceable events.\n\nThis would enable any nostrdb app (damus ios, notedeck, etc) to \"self-heal\". it could detect simulatenous follow and unfollows and discard the unfollows.\n\nYou could also use this to show diffs in longform posts, and follow/unfollow histories for all users in your local db.",
"sig": "db3bd14363f340cabda5678c7a492f98756fa4a2d1ff1d1c44c0e525f3815365ca000e7e03b0117dccae44693203cab15024df2c79b51968beabe803ce54ebe0"
}