Skip to content

Commit

Permalink
(fix): removes legacy suggested boosts from neo4j
Browse files Browse the repository at this point in the history
  • Loading branch information
markharding committed Aug 13, 2016
1 parent da85705 commit 0f7eedc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Controllers/api/v1/entities/suggested.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ public function get($pages)
$options['guids'] = $guids;

$entities = Core\Entities::get($options);
$boost = Core\Boost\Factory::build("Suggested")->getBoost();
/*$boost = Core\Boost\Factory::build("Suggested")->getBoost();
if ($boost && $boost['guid']) {
$boost_guid = $boost['guid'];
$boost_object = entities\Factory::build($boost_guid);
$boost_object->boosted = true;
array_splice($entities, 2, 0, array($boost_guid => $boost_object));
}
}*/

$diff = microtime(true) - $ts;
//error_log("loaded suggested entities in $diff");
Expand Down

0 comments on commit 0f7eedc

Please sign in to comment.