Loading Core/Feeds/Top/Repository.php +12 −0 Original line number Diff line number Diff line Loading @@ -190,6 +190,18 @@ class Repository ]; } if (!$opts['container_guid'] && !$opts['owner_guid']) { if (!isset($body['query']['function_score']['query']['bool']['must_not'])) { $body['query']['function_score']['query']['bool']['must_not'] = []; } $body['query']['function_score']['query']['bool']['must_not'][] = [ 'term' => [ 'deleted' => true, ], ]; } if ($opts['custom_type']) { $customTypes = Text::buildArray($opts['custom_type']); Loading Loading
Core/Feeds/Top/Repository.php +12 −0 Original line number Diff line number Diff line Loading @@ -190,6 +190,18 @@ class Repository ]; } if (!$opts['container_guid'] && !$opts['owner_guid']) { if (!isset($body['query']['function_score']['query']['bool']['must_not'])) { $body['query']['function_score']['query']['bool']['must_not'] = []; } $body['query']['function_score']['query']['bool']['must_not'][] = [ 'term' => [ 'deleted' => true, ], ]; } if ($opts['custom_type']) { $customTypes = Text::buildArray($opts['custom_type']); Loading