From c076545e3bbe70effc1160e823a92b7d91d7e614 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 27 May 2021 10:49:15 +0000 Subject: [PATCH] API: Only show "bookmarked" on top level post --- src/Factory/Api/Mastodon/Status.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Factory/Api/Mastodon/Status.php b/src/Factory/Api/Mastodon/Status.php index 41f64daa16..1312cb7f47 100644 --- a/src/Factory/Api/Mastodon/Status.php +++ b/src/Factory/Api/Mastodon/Status.php @@ -81,7 +81,7 @@ class Status extends BaseFactory Post::exists(['thr-parent-id' => $uriId, 'uid' => $uid, 'origin' => true, 'gravity' => GRAVITY_ACTIVITY, 'vid' => Verb::getID(Activity::LIKE), 'deleted' => false]), Post::exists(['thr-parent-id' => $uriId, 'uid' => $uid, 'origin' => true, 'gravity' => GRAVITY_ACTIVITY, 'vid' => Verb::getID(Activity::ANNOUNCE), 'deleted' => false]), Post\ThreadUser::getIgnored($uriId, $uid), - (bool)$item['starred'], + (bool)($item['starred'] && ($item['gravity'] == GRAVITY_PARENT)), Post\ThreadUser::getPinned($uriId, $uid) );