mirror of
https://github.com/versia-pub/docs.git
synced 2025-12-06 06:18:19 +01:00
feat: 🔥 Remove Patches
This commit is contained in:
parent
d3d837e58f
commit
b4c4254797
|
|
@ -1,31 +0,0 @@
|
||||||
export const metadata = {
|
|
||||||
title: 'Patches',
|
|
||||||
description: 'Definition of the Patch entity',
|
|
||||||
}
|
|
||||||
|
|
||||||
# Patches
|
|
||||||
|
|
||||||
Patches are entities that indicate a change to another entity. They are sent to instances as a kind of "reindex this entity" message. Patches are used to update entities that have already been distributed to other instances.
|
|
||||||
|
|
||||||
## Entity Definition
|
|
||||||
|
|
||||||
<Row>
|
|
||||||
<Col>
|
|
||||||
<Properties>
|
|
||||||
<Property name="patched" type="URI" required={true} typeLink="/types#uri">
|
|
||||||
URI of the entity that was patched. Must be an absolute URI on the same instance.
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
</Col>
|
|
||||||
<Col sticky>
|
|
||||||
```jsonc {{ 'title': 'Example Patch (deletes attachments from the previous page\\'s Note)' }}
|
|
||||||
{
|
|
||||||
"id": "be96bb7a-4b8e-45f9-93aa-23633eb3cfdc",
|
|
||||||
"type": "Patch", // [!code focus]
|
|
||||||
"uri": "https://social.lysand.org/objects/be96bb7a-4b8e-45f9-93aa-23633eb3cfdc",
|
|
||||||
"created_at": "2024-06-19T01:07:44.139Z",
|
|
||||||
"patched": "https://social.lysand.org/notes/9a8928b6-2526-4979-aab1-ef2f88cd5700", // [!code focus]
|
|
||||||
}
|
|
||||||
```
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
|
|
@ -273,7 +273,6 @@ export const navigation: NavGroup[] = [
|
||||||
links: [
|
links: [
|
||||||
{ title: "Users", href: "/entities/users" },
|
{ title: "Users", href: "/entities/users" },
|
||||||
{ title: "Notes", href: "/entities/notes" },
|
{ title: "Notes", href: "/entities/notes" },
|
||||||
{ title: "Patches", href: "/entities/patches" },
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue