]> git.mxchange.org Git - friendica.git/commitdiff
API: Only show "bookmarked" on top level post
authorMichael <heluecht@pirati.ca>
Thu, 27 May 2021 10:49:15 +0000 (10:49 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 27 May 2021 10:49:15 +0000 (10:49 +0000)
src/Factory/Api/Mastodon/Status.php

index 41f64daa163a0b59fc91f4bc865569766675343d..1312cb7f476119ea240721f2d54981a3ee8faf2c 100644 (file)
@@ -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)
                );