From: Hank G Date: Fri, 24 Feb 2023 13:46:52 +0000 (-0500) Subject: Apply suggestions from code review X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5e8acbf5342fe2fa9610b5ec978cdd9cee8a5e68;p=friendica.git Apply suggestions from code review Co-authored-by: Hypolite Petovan --- diff --git a/doc/API-Friendica.md b/doc/API-Friendica.md index ea11c793a8..052754e048 100644 --- a/doc/API-Friendica.md +++ b/doc/API-Friendica.md @@ -724,36 +724,36 @@ On success: ```json [ { - "created": "2023-02-14 14:31:06", - "edited": "2023-02-14 14:31:14", - "title": "", - "desc": "", - "album": "Wall Photos", - "filename": "image.png", - "type": "image/png", - "height": 835, - "width": 693, - "datasize": 119523, - "profile": 0, - "allow_cid": "", - "deny_cid": "", - "allow_gid": "", - "deny_gid": "", - "id": "899184972463eb9b2ae3dc2580502826", - "scale": 0, - "media-id": 52, - "scales": [ - { - "id": 52, - "scale": 0, - "link": "https:///photo/899184972463eb9b2ae3dc2580502826-0.png", - "width": 693, - "height": 835, - "size": 119523 - }, - ... - ], - "thumb": "https:///photo/899184972463eb9b2ae3dc2580502826-2.png" + "created": "2023-02-14 14:31:06", + "edited": "2023-02-14 14:31:14", + "title": "", + "desc": "", + "album": "Wall Photos", + "filename": "image.png", + "type": "image/png", + "height": 835, + "width": 693, + "datasize": 119523, + "profile": 0, + "allow_cid": "", + "deny_cid": "", + "allow_gid": "", + "deny_gid": "", + "id": "899184972463eb9b2ae3dc2580502826", + "scale": 0, + "media-id": 52, + "scales": [ + { + "id": 52, + "scale": 0, + "link": "https:///photo/899184972463eb9b2ae3dc2580502826-0.png", + "width": 693, + "height": 835, + "size": 119523 + }, + ... + ], + "thumb": "https:///photo/899184972463eb9b2ae3dc2580502826-2.png" }, ... ] @@ -825,11 +825,11 @@ A Mastodon [Status Entity](https://docs.joinmastodon.org/entities/Status/) "spoiler_text": "", "visibility": "public", "language": "en", - ... + ... "account": { "id": "8", "username": "testuser2", - ... + ... }, "media_attachments": [], "mentions": [], @@ -863,11 +863,11 @@ in the body and next/previous link headers in the header ```json [ - { - "id": "6", - "username": "testuser1", - ... - } + { + "id": "6", + "username": "testuser1", + ... + } ] ``` @@ -899,11 +899,11 @@ A Mastodon [Status Entity](https://docs.joinmastodon.org/entities/Status/) "spoiler_text": "", "visibility": "public", "language": "en", - ... + ... "account": { "id": "8", "username": "testuser2", - ... + ... }, "media_attachments": [], "mentions": [], diff --git a/doc/API-Mastodon.md b/doc/API-Mastodon.md index a78bfc261b..0d7f921a27 100644 --- a/doc/API-Mastodon.md +++ b/doc/API-Mastodon.md @@ -72,26 +72,26 @@ Example: "created_at": "2023-02-23T02:45:46.000Z", "in_reply_to_id": "356", "in_reply_to_status": { - "id": "356", - "created_at": "2023-02-23T02:45:35.000Z", - "in_reply_to_id": null, - "in_reply_to_status": null, - "in_reply_to_account_id": null, - ... - "content": "A post from testuser1", - ... - "account": { - "id": "6", - "username": "testuser1", - "acct": "testuser1", - "display_name": "testuser1", - ... - }, - ... - "friendica": { - "title": "", - "dislikes_count": 0 - } + "id": "356", + "created_at": "2023-02-23T02:45:35.000Z", + "in_reply_to_id": null, + "in_reply_to_status": null, + "in_reply_to_account_id": null, + ... + "content": "A post from testuser1", + ... + "account": { + "id": "6", + "username": "testuser1", + "acct": "testuser1", + "display_name": "testuser1", + ... + }, + ... + "friendica": { + "title": "", + "dislikes_count": 0 + } }, "in_reply_to_account_id": "6", ... @@ -102,16 +102,16 @@ Example: "content": "A reply from testuser2", ... "account": { - "id": "8", - "username": "testuser2", - "acct": "testuser2", - "display_name": "testuser2", - ... + "id": "8", + "username": "testuser2", + "acct": "testuser2", + "display_name": "testuser2", + ... }, ... "friendica": { - "title": "", - "dislikes_count": 0 + "title": "", + "dislikes_count": 0 } } ```