From: Hank Grabowski Date: Mon, 20 Feb 2023 20:50:21 +0000 (-0500) Subject: Add deleted check to FavouritedBy Mastodon endpoint X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c419aabee42f79abe8df31d4c26bc1e63faae72f;p=friendica.git Add deleted check to FavouritedBy Mastodon endpoint --- diff --git a/src/Module/Api/Mastodon/Statuses/FavouritedBy.php b/src/Module/Api/Mastodon/Statuses/FavouritedBy.php index 3bf165798b..8f9fe02f17 100644 --- a/src/Module/Api/Mastodon/Statuses/FavouritedBy.php +++ b/src/Module/Api/Mastodon/Statuses/FavouritedBy.php @@ -49,7 +49,7 @@ class FavouritedBy extends BaseApi DI::mstdnError()->RecordNotFound(); } - $activities = Post::selectPosts(['author-id'], ['thr-parent-id' => $id, 'gravity' => Item::GRAVITY_ACTIVITY, 'verb' => Activity::LIKE]); + $activities = Post::selectPosts(['author-id'], ['thr-parent-id' => $id, 'gravity' => Item::GRAVITY_ACTIVITY, 'verb' => Activity::LIKE, 'deleted' => false]); $accounts = [];