ev on Nostr: I implemented editable posts on ssb, it's possible. I posted a new message type ...
I implemented editable posts on ssb, it's possible.
I posted a new message type 'edit', edit: 'posthash', content: 'new content' and then I collected all of the message edits, order by timestamp (ssb-query did this for me), and render a message that shows the differences between the edits. I only rendered a diff at the time, but I wanted an arrow where you can quickly pass over the edit timeline.
I'm pretty sure the code is on `git-ssb` somewhere.
Published at
2023-06-16 14:10:17Event JSON
{
"id": "5ab2f40757e7c3b8343994b4db09ab3aa3357da4506b1786ce8e1aaf5242c2f9",
"pubkey": "8b278ad86bf6a418dba942ff04fa8ed372303ab1b5e4286b785f7a5cdc07b277",
"created_at": 1686924617,
"kind": 1,
"tags": [
[
"p",
"76c71aae3a491f1d9eec47cba17e229cda4113a0bbb6e6ae1776d7643e29cafa"
],
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"
],
[
"e",
"b8222864d824944527272a34c5ce1edfea31965e8ae7dc747aa2c40015b83699",
"wss://relay.damus.io/",
"root"
],
[
"e",
"1731c9897fe1bce6facae34e39ffcc170ddb3a6adc6481b84a67378d25c23dd6",
"wss://relay.damus.io/",
"reply"
]
],
"content": "I implemented editable posts on ssb, it's possible.\n\nI posted a new message type 'edit', edit: 'posthash', content: 'new content' and then I collected all of the message edits, order by timestamp (ssb-query did this for me), and render a message that shows the differences between the edits. I only rendered a diff at the time, but I wanted an arrow where you can quickly pass over the edit timeline.\n\nI'm pretty sure the code is on `git-ssb` somewhere.",
"sig": "0768c868efe6be4f66960de9ad4994466122ba3cfb89b8d4dbd4f0928f548bdf4c0feef686d6b933c075f021d9d0dac82701ee3fc25c1c336be9811070d7dd6d"
}