chiark / gitweb /
Fix duplication of items in feeds.
authorSimon Tatham <anakin@pobox.com>
Mon, 8 Jan 2024 19:20:54 +0000 (19:20 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 8 Jan 2024 19:20:54 +0000 (19:20 +0000)
commit780723d7655eea34fd454db24534ba5850a2dd0f
tree75a1c9b2d039d23382e0491fbe4c3b91502252e4
parent9485062c5cf107ff8891d50407934ba08ec1bc8f
Fix duplication of items in feeds.

When we request any part of the contents of a feed from the server, it
provides us with followup links we can use to extend the same feed
further into the past or future. But if we're extending it further
into the past than we had, we shouldn't save the future link we get
back, because it's not as good as the future link we already had. And
vice versa.

The effect of this bug was that after extending a feed into the past,
the next extension into the future would start from the past
fragment's future extension and re-retrieve all the items we already
had. And we wouldn't notice, and would store a second copy of all
their ids in our list.
src/client.rs