]> cat aescling's git repositories - mastodon.git/commit
[Glitch] Fix timeline pagination in the WebUI
authorThibaut Girka <thib@sitedethib.com>
Thu, 13 Dec 2018 20:08:22 +0000 (21:08 +0100)
committerThibG <thib@sitedethib.com>
Thu, 13 Dec 2018 20:59:46 +0000 (21:59 +0100)
commit132dd281623d1d4a4651a60c9879e39070d5ecf3
tree3f123e64e721671b7e92b7ca721f68d61f929059
parentc20c6c202904afee1db514be55b4b943d78df315
[Glitch] Fix timeline pagination in the WebUI

The `hasMore` property of timelines in redux store was set whenever an API
request returned only one page of results, *even* if the query only requested
newer statuses (using `since_id`), causing `hasMore` to be incorrectly set to
false whenever fetching new toots in a timeline, which happens each time
an account's timeline or media gallery is visited.
app/javascript/flavours/glitch/actions/timelines.js
app/javascript/flavours/glitch/reducers/timelines.js