mirror of
https://github.com/friendica/friendica
synced 2025-04-19 05:50:10 +00:00
Performance improvements in public timeline
This commit is contained in:
parent
a8c23e8cee
commit
df8644c59c
4 changed files with 7 additions and 23 deletions
|
@ -58,7 +58,7 @@ class PublicTimeline extends BaseApi
|
|||
$params = ['order' => ['uri-id' => true], 'limit' => $request['limit']];
|
||||
|
||||
$condition = ['gravity' => [Item::GRAVITY_PARENT, Item::GRAVITY_COMMENT], 'private' => Item::PUBLIC,
|
||||
'network' => Protocol::FEDERATED, 'parent-author-blocked' => false, 'parent-author-hidden' => false];
|
||||
'network' => Protocol::FEDERATED, 'author-blocked' => false, 'author-hidden' => false];
|
||||
|
||||
if ($request['local']) {
|
||||
$condition = DBA::mergeConditions($condition, ["`uri-id` IN (SELECT `uri-id` FROM `post-user` WHERE `origin`)"]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue