From 4cf46b97700612bf76a1b2021b2b9224d2841307 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 11 Jun 2022 06:05:55 +0000 Subject: [PATCH] API: Use the type field in the query for pinned posts --- src/Module/Api/Mastodon/Accounts/Statuses.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Api/Mastodon/Accounts/Statuses.php b/src/Module/Api/Mastodon/Accounts/Statuses.php index 95289c6e2..7c75ea5cf 100644 --- a/src/Module/Api/Mastodon/Accounts/Statuses.php +++ b/src/Module/Api/Mastodon/Accounts/Statuses.php @@ -68,7 +68,7 @@ class Statuses extends BaseApi $params = ['order' => ['uri-id' => true], 'limit' => $request['limit']]; if ($request['pinned']) { - $condition = ['author-id' => $id, 'private' => [Item::PUBLIC, Item::UNLISTED]]; + $condition = ['author-id' => $id, 'private' => [Item::PUBLIC, Item::UNLISTED], 'type' => Post\Collection::FEATURED]; } elseif (!$uid) { $condition = ['author-id' => $id, 'private' => [Item::PUBLIC, Item::UNLISTED], 'uid' => 0, 'network' => Protocol::FEDERATED];