ordered attachments and tags
This commit is contained in:
parent
a304590ba8
commit
77446e77ed
|
@ -1,6 +1,4 @@
|
||||||
### maybe objects shouldn't be inlined tho
|
maybe objects shouldn't be inlined tho? spritely magenc golem ocappub etc etc etc
|
||||||
|
|
||||||
spritely magenc golem ocappub etc etc etc
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
id: alice.example/54078934249073290847321094/activity/1
|
id: alice.example/54078934249073290847321094/activity/1
|
||||||
|
|
20
content/tech/spec/activitypub/ideas/orderedAttachment.md
Normal file
20
content/tech/spec/activitypub/ideas/orderedAttachment.md
Normal 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
|
Loading…
Reference in a new issue