diff options
| author | Shpuld Shpludson <shp@cock.li> | 2019-04-01 19:33:45 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2019-04-01 19:33:45 +0000 |
| commit | df366a586d6549b41d5537c57eb51c5f0f54a641 (patch) | |
| tree | edbad456069fc196f2c8e2cf66ffdc1e45b51a62 /src/modules/statuses.js | |
| parent | 3c2931529ef14c3796e9afb21180392a0a7d9725 (diff) | |
| parent | d856c2745cdbb823bae19b7a381c0e3fb988f74d (diff) | |
Merge branch '471-timeline-since-id' into 'develop'
#471 - fix timeline fetch with since_id
Closes #471
See merge request pleroma/pleroma-fe!722
Diffstat (limited to 'src/modules/statuses.js')
| -rw-r--r-- | src/modules/statuses.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/statuses.js b/src/modules/statuses.js index 742eecba..8e0203e3 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -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) { |
