Merge branch '471-timeline-since-id' into 'develop'
#471 - fix timeline fetch with since_id Closes #471 See merge request pleroma/pleroma-fe!722
This commit is contained in:
commit
df366a586d
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
|
||||||
|
|
||||||
const maxNew = statuses.length > 0 ? maxBy(statuses, 'id').id : 0
|
const maxNew = statuses.length > 0 ? maxBy(statuses, 'id').id : 0
|
||||||
const minNew = statuses.length > 0 ? minBy(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
|
const older = timeline && (minNew < timelineObject.minId || timelineObject.minId === 0) && statuses.length > 0
|
||||||
|
|
||||||
if (!noIdUpdate && newer) {
|
if (!noIdUpdate && newer) {
|
||||||
|
|
Loading…
Reference in a new issue