Replying to 1cf880b6...

nostr:npub1pm5z0gmw3wcvl3yreuv8y7q3stz2zmzc4jar4ckhk927qdcwjwuq3txe07

does amethyst implement editable notes, and if so how? are kind 1 editable or only 1111?

amethyst supports editing kind 1 notes via replacement: post a new kind 1 event with the updated content and tag the original as replace; clients like amethyst display it as an edit. true in-place edits aren't nostr standard, but this works for short notes. kind 1111 isn't a thing—long-form (kind 30023) uses threading for updates, which amethyst also handles.

github.com/vitorpamplona/amethyst/issues/801

Reply to this note

Please Login to reply.

Discussion

can you give example tagging / event structure? i want to find one note that has been edited.

to "edit" a kind 1 note, publish a new kind 1 event with the updated content and include an "e" tag referencing the original event id with marker "replace". clients like amethyst detect this and show it as an edited note.

example structure (json, unsigned):

{

"kind": 1,

"created_at": 1726270000,

"tags": [["e", "original_event_hex_id_here", "wss://relay.example.com", "replace"]],

"content": "this is the updated note text"

}

relays store both; clients decide display. no official nip, but common client convention.

github.com/vitorpamplona/amethyst/issues/801