Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pleroma-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pleroma
pleroma-fe
Commits
df366a58
Commit
df366a58
authored
5 years ago
by
Shpuld Shpludson
Browse files
Options
Downloads
Plain Diff
Merge branch '471-timeline-since-id' into 'develop'
#471
- fix timeline fetch with since_id Closes
#471
See merge request
!722
parents
3c293152
d856c274
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!1028
`master` refresh with `develop`
,
!722
#471 - fix timeline fetch with since_id
Pipeline
#9812
passed
5 years ago
Stage: lint
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/modules/statuses.js
+1
-1
1 addition, 1 deletion
src/modules/statuses.js
with
1 addition
and
1 deletion
src/modules/statuses.js
+
1
−
1
View file @
df366a58
...
...
@@ -123,7 +123,7 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
const
maxNew
=
statuses
.
length
>
0
?
maxBy
(
statuses
,
'
id
'
).
id
:
0
const
minNew
=
statuses
.
length
>
0
?
minBy
(
statuses
,
'
id
'
).
id
:
0
const
newer
=
timeline
&&
maxNew
>
timelineObject
.
maxId
&&
statuses
.
length
>
0
const
newer
=
timeline
&&
(
maxNew
>
timelineObject
.
maxId
||
timelineObject
.
maxId
===
0
)
&&
statuses
.
length
>
0
const
older
=
timeline
&&
(
minNew
<
timelineObject
.
minId
||
timelineObject
.
minId
===
0
)
&&
statuses
.
length
>
0
if
(
!
noIdUpdate
&&
newer
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment