Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
286
Merge Requests
38
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Compare Revisions
f79b9150fc5db9b82de6ab1422c67421b2965e0c...b1eb99217b6ff87d73d9d210b5dbfcba78e0b8b1
Source
b1eb99217b6ff87d73d9d210b5dbfcba78e0b8b1
...
Target
f79b9150fc5db9b82de6ab1422c67421b2965e0c
Compare
Commits (2)
(fix): Period fallback issues
· 20d9db4b
Emiliano Balbuena
authored
8 minutes ago
20d9db4b
(cs): Lint
· b1eb9921
Emiliano Balbuena
authored
8 minutes ago
b1eb9921
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
6 deletions
+2
-6
Controllers/api/v2/feeds.php
View file @
b1eb9921
...
...
@@ -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
...
...
This diff is collapsed.
Core/Clock.php
View file @
b1eb9921
...
...
@@ -6,7 +6,6 @@
*/
namespace
Minds\Core
;
class
Clock
{
/**
...
...
This diff is collapsed.
Core/Feeds/FeedCollection.php
View file @
b1eb9921
...
...
@@ -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
;
...
...
This diff is collapsed.