Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
146
Issues
146
List
Boards
Labels
Service Desk
Milestones
Merge Requests
36
Merge Requests
36
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
a11370c5
Commit
a11370c5
authored
3 hours ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(chore): change position of feeds increment and filter for admins too
parent
ba45f02b
master
No related merge requests found
Pipeline
#65850856 (#752)
passed with stages
in 8 minutes and 30 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
feeds.php
Controllers/api/v2/feeds.php
+1
-1
Manager.php
Core/Feeds/Top/Manager.php
+3
-1
No files found.
Controllers/api/v2/feeds.php
View file @
a11370c5
...
...
@@ -156,7 +156,7 @@ class feeds implements Interfaces\Api
'period'
=>
$period
,
'sync'
=>
$sync
,
'query'
=>
$query
??
null
,
'single_owner_threshold'
=>
Core\Session
::
isAdmin
()
?
0
:
36
,
'single_owner_threshold'
=>
36
,
];
$nsfw
=
$_GET
[
'nsfw'
]
??
''
;
...
...
This diff is collapsed.
Click to expand it.
Core/Feeds/Top/Manager.php
View file @
a11370c5
...
...
@@ -114,7 +114,7 @@ class Manager
$ownerGuid
=
$scoredGuid
->
getOwnerGuid
()
?:
$scoredGuid
->
getGuid
();
if
(
++
$i
<
$opts
[
'single_owner_threshold'
]
if
(
$i
<
$opts
[
'single_owner_threshold'
]
&&
isset
(
$owners
[
$ownerGuid
])
&&
!
$opts
[
'filter_hashtags'
]
&&
!
in_array
(
$opts
[
'type'
],
[
'user'
,
'group'
])
...
...
@@ -123,6 +123,8 @@ class Manager
}
$owners
[
$ownerGuid
]
=
true
;
++
$i
;
// Update here as we don't want to count skipped
$feedSyncEntities
[]
=
(
new
FeedSyncEntity
())
->
setGuid
((
string
)
$scoredGuid
->
getGuid
())
->
setOwnerGuid
((
string
)
$ownerGuid
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment