mirror of
https://github.com/friendica/friendica
synced 2024-11-13 01:02:53 +00:00
API: Only show "bookmarked" on top level post
This commit is contained in:
parent
1ec18075de
commit
c076545e3b
1 changed files with 1 additions and 1 deletions
|
@ -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::LIKE), 'deleted' => false]),
|
||||||
Post::exists(['thr-parent-id' => $uriId, 'uid' => $uid, 'origin' => true, 'gravity' => GRAVITY_ACTIVITY, 'vid' => Verb::getID(Activity::ANNOUNCE), '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),
|
Post\ThreadUser::getIgnored($uriId, $uid),
|
||||||
(bool)$item['starred'],
|
(bool)($item['starred'] && ($item['gravity'] == GRAVITY_PARENT)),
|
||||||
Post\ThreadUser::getPinned($uriId, $uid)
|
Post\ThreadUser::getPinned($uriId, $uid)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue