]> git.mxchange.org Git - friendica.git/commitdiff
Add deleted check to FavouritedBy Mastodon endpoint
authorHank Grabowski <hankgrabowski@gmail.com>
Mon, 20 Feb 2023 20:50:21 +0000 (15:50 -0500)
committerHank Grabowski <hankgrabowski@gmail.com>
Mon, 20 Feb 2023 20:50:21 +0000 (15:50 -0500)
src/Module/Api/Mastodon/Statuses/FavouritedBy.php

index 3bf165798b2d782934830d2d1356279f9e9c9ae1..8f9fe02f171989a26b2d31790b2227b79784a95e 100644 (file)
@@ -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 = [];