]> git.mxchange.org Git - friendica.git/commitdiff
Apply suggestions from code review
authorHank G <hankgrabowski@gmail.com>
Fri, 24 Feb 2023 13:46:52 +0000 (08:46 -0500)
committerGitHub <noreply@github.com>
Fri, 24 Feb 2023 13:46:52 +0000 (08:46 -0500)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
doc/API-Friendica.md
doc/API-Mastodon.md

index ea11c793a87b9e6151f591f3c542af5b26c82cba..052754e0487b0719e0d0431e819cebbc1385fbdc 100644 (file)
@@ -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://<server>/photo/899184972463eb9b2ae3dc2580502826-0.png",
-               "width": 693,
-               "height": 835,
-               "size": 119523
-         },
-         ...
-       ],
-       "thumb": "https://<server>/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://<server>/photo/899184972463eb9b2ae3dc2580502826-0.png",
+        "width": 693,
+        "height": 835,
+        "size": 119523
+      },
+      ...
+    ],
+    "thumb": "https://<server>/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": [],
index a78bfc261bc8ff36a0ec0c5122f24d2048ff3c5f..0d7f921a27f6a5e1d31bb924b4b4df90f35faa97 100644 (file)
@@ -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
   }
 }
 ```