wiki.trwnh.com/content/tech/spec/activitypub/ideas/orderedAttachment.md
2023-05-08 12:31:37 -04:00

20 lines
612 B
Markdown

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