Nostr has expiration tags, but most clients don't use them.
Discussion
Expiration allows relays to delete notes without needing to retain a deletion event.
What is the significance of note expiration?
What I mean is like... why delete them at all?
Why not delete them?
All notes will get deleted, at some point, except for archive relays. And probably even there, If the data set gets big enough.
Usually, the deletion happens because of some cronjob on the server, that just deletes everything older than XYZ date. Especially chats, Kind 01, emojis, and other low-value posts, as well as notes that have received a deletion request.
But this means that the same note can reappear, if someone rebroadcasts it to the relay again, which is means you:
1) have to keep redeleting the same old crap, over and over
2) have to retain the deletion request, in case someone rebroadcasts a note an npub has sent one for, without rebroadcasting the request that goes along with it.
If notes have expiration dates, you can delete them faster and never accept them, again, because you can refuse to write expired notes.
🤔 I see your points. So, this is why its so important to run your own personal relay. This means that I have to start being more active with mine. Appreciate your input, as always😁.
Good morning, btw☀️🫡!
the event store database i made has tombstones and once it receives a delete it creates a tombstone... i think i even put a date on it so it can be culled off eventually, not sure, that would be wise to add
it searches for tombstones when it gets a delete event and if it finds one it sends back ok,false,invalid:tombstone found for event, not saving again
er, i mean, it searches for tombstones when events are being stored
so if it finds the tombstone, it doesn't save it again
ok, you have convinced me, i'm going to do a review of the state of that and make it proper or polish it at least
Yeah, you need some mechanism to deal with the mess.