...
 
Commits (2)
......@@ -15,8 +15,6 @@ use Minds\Interfaces;
class feeds implements Interfaces\Api
{
/**
* Gets a list of suggested hashtags, including the ones the user has opted in
* @param array $pages
......
......@@ -6,7 +6,6 @@
*/
namespace Minds\Core;
class Clock
{
/**
......
......@@ -127,8 +127,7 @@ class FeedCollection
$elasticEntities = null,
$userHashtagsManager = null,
$clock = null
)
{
) {
$this->elasticManager = $elasticManager ?: Di::_()->get('Feeds\Elastic\Manager');
$this->elasticEntities = $elasticEntities ?: new ElasticEntities();
$this->userHashtagsManager = $userHashtagsManager ?: Di::_()->get('Hashtags\User\Manager');
......@@ -447,7 +446,7 @@ class FeedCollection
if (
!$this->periodFallback ||
!in_array($this->algorithm, static::ALLOWED_TO_FALLBACK, true) ||
!isset(static::PERIOD_FALLBACK[$this->period]) ||
!isset(static::PERIOD_FALLBACK[$opts['period']]) ||
++$i > 2 // Stop at 2nd fallback (i.e. 12h > 7d > 30d)
) {
break;
......