[bugfix] Always serialize orderedItems as array (#1673)

This commit is contained in:
tobi 2023-04-06 13:16:53 +02:00 committed by GitHub
commit 4f322f527f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 77 additions and 7 deletions

View file

@ -236,13 +236,15 @@ Example of a featured collection of a user who has pinned multiple `Note`s:
}
```
Example of a user who has pinned one `Note` (`orderedItems` is just a URL string now!):
Example of a user who has pinned one `Note`:
```json
{
"@context": "https://www.w3.org/ns/activitystreams",
"id": "https://example.org/users/some_user/collections/featured",
"orderedItems": "https://example.org/users/some_user/statuses/01GS7VTYH0S77NNXTP6W4G9EAG",
"orderedItems": [
"https://example.org/users/some_user/statuses/01GS7VTYH0S77NNXTP6W4G9EAG"
],
"totalItems": 1,
"type": "OrderedCollection"
}