]> git.mxchange.org Git - friendica.git/commitdiff
Apply suggestions
authormarcin mikołajczak <git@mkljczk.pl>
Sun, 26 Mar 2023 17:08:38 +0000 (19:08 +0200)
committermarcin mikołajczak <git@mkljczk.pl>
Sun, 26 Mar 2023 19:47:47 +0000 (21:47 +0200)
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
doc/API-Mastodon.md
src/Factory/Api/Mastodon/Status.php

index 12efc2f086aca41751c2e871a63c97d099d8bf06..05a5af521f2843f1c620ca296e62337bebbbdd50 100644 (file)
@@ -68,7 +68,7 @@ Extensions to the [Mastodon Status Entities](https://docs.joinmastodon.org/entit
     * `delivery_queue_done`: Total number of remote servers that have successfully been federated to so far.
     * `delivery_queue_failed`: Total number of remote servers that have we failed to federate to so far.
   * `dislikes_count`: The number of dislikes that a status has accumulated according to the server.
-  * `disliked`: Whethere the user disliked the status.
+  * `disliked`: Whether the API user disliked the status.
 
 Example:
 ```json
index 1199b0495e92f90993af0242502148275089efb1..4c9553e65fbb7dfd949beace52641e5ddab9e430 100644 (file)
@@ -175,15 +175,15 @@ class Status extends BaseFactory
                        'origin'        => true,
                        'gravity'       => Item::GRAVITY_ACTIVITY,
                        'vid'           => Verb::getID(Activity::LIKE),
-                       'deleted'     => false
+                       'deleted'       => false
                ]);
-               $origin_dislike = ($count_like == 0) ? false : Post::exists([
+               $origin_dislike = ($count_dislike == 0) ? false : Post::exists([
                        'thr-parent-id' => $uriId,
                        'uid'           => $uid,
                        'origin'        => true,
                        'gravity'       => Item::GRAVITY_ACTIVITY,
                        'vid'           => Verb::getID(Activity::DISLIKE),
-                       'deleted'     => false
+                       'deleted'       => false
                ]);
                $origin_announce = ($count_announce == 0) ? false : Post::exists([
                        'thr-parent-id' => $uriId,