Apply suggestions from code review

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Hank G 2023-02-24 08:46:52 -05:00 committed by GitHub
parent 671fc61ef4
commit 5e8acbf534
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 66 additions and 66 deletions

View file

@ -724,36 +724,36 @@ On success:
```json ```json
[ [
{ {
"created": "2023-02-14 14:31:06", "created": "2023-02-14 14:31:06",
"edited": "2023-02-14 14:31:14", "edited": "2023-02-14 14:31:14",
"title": "", "title": "",
"desc": "", "desc": "",
"album": "Wall Photos", "album": "Wall Photos",
"filename": "image.png", "filename": "image.png",
"type": "image/png", "type": "image/png",
"height": 835, "height": 835,
"width": 693, "width": 693,
"datasize": 119523, "datasize": 119523,
"profile": 0, "profile": 0,
"allow_cid": "", "allow_cid": "",
"deny_cid": "", "deny_cid": "",
"allow_gid": "", "allow_gid": "",
"deny_gid": "", "deny_gid": "",
"id": "899184972463eb9b2ae3dc2580502826", "id": "899184972463eb9b2ae3dc2580502826",
"scale": 0, "scale": 0,
"media-id": 52, "media-id": 52,
"scales": [ "scales": [
{ {
"id": 52, "id": 52,
"scale": 0, "scale": 0,
"link": "https://<server>/photo/899184972463eb9b2ae3dc2580502826-0.png", "link": "https://<server>/photo/899184972463eb9b2ae3dc2580502826-0.png",
"width": 693, "width": 693,
"height": 835, "height": 835,
"size": 119523 "size": 119523
}, },
... ...
], ],
"thumb": "https://<server>/photo/899184972463eb9b2ae3dc2580502826-2.png" "thumb": "https://<server>/photo/899184972463eb9b2ae3dc2580502826-2.png"
}, },
... ...
] ]
@ -825,11 +825,11 @@ A Mastodon [Status Entity](https://docs.joinmastodon.org/entities/Status/)
"spoiler_text": "", "spoiler_text": "",
"visibility": "public", "visibility": "public",
"language": "en", "language": "en",
... ...
"account": { "account": {
"id": "8", "id": "8",
"username": "testuser2", "username": "testuser2",
... ...
}, },
"media_attachments": [], "media_attachments": [],
"mentions": [], "mentions": [],
@ -863,11 +863,11 @@ in the body and next/previous link headers in the header
```json ```json
[ [
{ {
"id": "6", "id": "6",
"username": "testuser1", "username": "testuser1",
... ...
} }
] ]
``` ```
@ -899,11 +899,11 @@ A Mastodon [Status Entity](https://docs.joinmastodon.org/entities/Status/)
"spoiler_text": "", "spoiler_text": "",
"visibility": "public", "visibility": "public",
"language": "en", "language": "en",
... ...
"account": { "account": {
"id": "8", "id": "8",
"username": "testuser2", "username": "testuser2",
... ...
}, },
"media_attachments": [], "media_attachments": [],
"mentions": [], "mentions": [],

View file

@ -72,26 +72,26 @@ Example:
"created_at": "2023-02-23T02:45:46.000Z", "created_at": "2023-02-23T02:45:46.000Z",
"in_reply_to_id": "356", "in_reply_to_id": "356",
"in_reply_to_status": { "in_reply_to_status": {
"id": "356", "id": "356",
"created_at": "2023-02-23T02:45:35.000Z", "created_at": "2023-02-23T02:45:35.000Z",
"in_reply_to_id": null, "in_reply_to_id": null,
"in_reply_to_status": null, "in_reply_to_status": null,
"in_reply_to_account_id": null, "in_reply_to_account_id": null,
... ...
"content": "A post from testuser1", "content": "A post from testuser1",
... ...
"account": { "account": {
"id": "6", "id": "6",
"username": "testuser1", "username": "testuser1",
"acct": "testuser1", "acct": "testuser1",
"display_name": "testuser1", "display_name": "testuser1",
... ...
}, },
... ...
"friendica": { "friendica": {
"title": "", "title": "",
"dislikes_count": 0 "dislikes_count": 0
} }
}, },
"in_reply_to_account_id": "6", "in_reply_to_account_id": "6",
... ...
@ -102,16 +102,16 @@ Example:
"content": "A reply from testuser2", "content": "A reply from testuser2",
... ...
"account": { "account": {
"id": "8", "id": "8",
"username": "testuser2", "username": "testuser2",
"acct": "testuser2", "acct": "testuser2",
"display_name": "testuser2", "display_name": "testuser2",
... ...
}, },
... ...
"friendica": { "friendica": {
"title": "", "title": "",
"dislikes_count": 0 "dislikes_count": 0
} }
} }
``` ```