Latest.json - duplicate post at crossover between page 0 and 1?



I’m having a strange issue where latest.json is returning the same post at the end of page 0 and at the beginning of page 1.

Any idea what could be causing this?

Running latest Discourse: 1.3.0.beta4


Oddly enough, with a new post in place, again, the last topic on page 0 is duplicated as the first topic on page 1.

(Jeff Atwood) #3

Could be a legit bug, would not be the first off by one error in computer science…

(Kane York) #4

Note that the JS client handles this fine - it just ‘updates’ the previously received entry in the UI and adds the other ones on the end, I think.


For sure, I was just confused why it seems fine on here meta.discourse, looking at the latest JSON this overlap isn’t occurring.

(Kane York) #6

Ooh, I have a guess. If you pin a second topic, does it overlap by 2?