FenTigerAnother nail in the coffin for #<a class="" href="https://zotum.net/search?tag=JsonLD" rel="nofollow noopener noreferrer" target="_blank">JsonLD</a>:<br><br><pre><code>{<br> "id": "https://zotum.net/conversation/235e8736-1b3e-4d7f-ab9e-3d49f04ecda7",<br> "orderedItems": [<br> {<br> "type": "Add",<br> "object": {<br> "type": "Create",<br> "object": {<br> "type": "Note",<br> "id": "https://zotum.net/item/235e8736-1b3e-4d7f-ab9e-3d49f04ecda7",<br> "published": "2025-02-25T20:28:33Z",<br> [... original version of post ... ]<br> },<br> },<br> },<br> {<br> "type": "Add",<br> "object": {<br> "type": "Update",<br> "object": {<br> "type": "Note",<br> "id": "https://zotum.net/item/235e8736-1b3e-4d7f-ab9e-3d49f04ecda7",<br> "published": "2025-02-25T20:28:33Z",<br> "updated": "2025-02-25T20:29:03Z",<br> [... edited version of post ...]<br> },</code></pre><br>That's a post that I edited shortly after I first made it. The corresponding conversation container contains both the original Create, and an Update with the changes. This means that the embedded Note object appears twice, with different contents, but with <em>the same ID</em>.<br><br>JSON-LD processing will kind of squish them together into the same object that contains both the original and the new <code>content</code> etc. Handling this as JSON-LD will mean recognising the high level structure of it first, and then iterating over the <code>orderedItems</code> and processing them individually, rather than trying to treat the whole thing as a single JSON-LD message.<br><br>#<a class="" href="https://zotum.net/search?tag=ActivityPubDev" rel="nofollow noopener noreferrer" target="_blank">ActivityPubDev</a>