ordered attachments and tags

This commit is contained in:
a 2023-05-08 12:31:37 -04:00
parent a304590ba8
commit 77446e77ed
2 changed files with 21 additions and 3 deletions

View File

@ -1,6 +1,4 @@
### maybe objects shouldn't be inlined tho
spritely magenc golem ocappub etc etc etc
maybe objects shouldn't be inlined tho? spritely magenc golem ocappub etc etc etc
```yaml
id: alice.example/54078934249073290847321094/activity/1

View File

@ -0,0 +1,20 @@
problem: sometimes you want to have attachments in a certain order, but `attachment` is an unordered set by default
solution: define `orderedAttachment` similar to `orderedItems`
```json
{
"@context": [
{
"orderedAttachment": {
"@id": "https://...",
"@type": "@id",
"@container": "@list"
}
},
"https://www.w3.org/ns/activitystreams"
]
}
```
you could maybe do the same for `orderedTag` but idk if that makes full sense bc `tag` is not really used for categorization so much... but if tumblr or a tumblr-like implementation wanted to order their tags then they have no way of doing so