From 154f91c6c168c85d0a51f46b1489421d01941f2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sun, 26 Mar 2023 19:08:38 +0200 Subject: [PATCH] Apply suggestions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- doc/API-Mastodon.md | 2 +- src/Factory/Api/Mastodon/Status.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/API-Mastodon.md b/doc/API-Mastodon.md index 12efc2f086..05a5af521f 100644 --- a/doc/API-Mastodon.md +++ b/doc/API-Mastodon.md @@ -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 diff --git a/src/Factory/Api/Mastodon/Status.php b/src/Factory/Api/Mastodon/Status.php index 1199b0495e..4c9553e65f 100644 --- a/src/Factory/Api/Mastodon/Status.php +++ b/src/Factory/Api/Mastodon/Status.php @@ -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,