Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
278
Issues
278
List
Boards
Labels
Service Desk
Milestones
Merge Requests
46
Merge Requests
46
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
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
5ce5387d
Commit
5ce5387d
authored
4 hours ago
by
Guy Thouret
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix) Fix issue with null offset being set in boost feed api -
#930
parent
198721b3
goal/boost-campaigns-e24
1 merge request
!235
WIP: Boost Campaigns (&24)
Pipeline
#90740282
failed with stages
in 14 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Controllers/api/v2/boost/feed.php
Controllers/api/v2/boost/feed.php
+2
-2
No files found.
Controllers/api/v2/boost/feed.php
View file @
5ce5387d
...
...
@@ -44,7 +44,7 @@ class feed implements Interfaces\Api
$this
->
type
=
$pages
[
0
]
??
'newsfeed'
;
if
(
$this
->
isBoostFeed
)
{
$this
->
offset
=
$_GET
[
'from_timestamp'
]
?
:
0
;
$this
->
offset
=
$_GET
[
'from_timestamp'
]
?
?
0
;
}
switch
(
$this
->
type
)
{
...
...
@@ -62,7 +62,7 @@ class feed implements Interfaces\Api
protected
function
parseAndValidateParams
()
:
bool
{
$this
->
limit
=
abs
(
intval
(
$_GET
[
'limit'
]
??
2
));
$this
->
offset
=
$_GET
[
'offset'
]
??
null
;
$this
->
offset
=
$_GET
[
'offset'
]
??
0
;
$this
->
rating
=
intval
(
$_GET
[
'rating'
]
??
$this
->
currentUser
->
getBoostRating
());
$this
->
platform
=
$_GET
[
'platform'
]
??
'other'
;
$this
->
isBoostFeed
=
$_GET
[
'boostfeed'
]
??
false
;
...
...
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