TwidereProject / Twidere-Android

http://twidere.com
2.75k stars 377 forks source link

Load more than 40 toots in Mastodon timeline #1023

Open Ezelty opened 6 years ago

Ezelty commented 6 years ago

Expected behavior

Twidere should load the number of toots you set as limit per load and allow to load more toots if necessary. For example, if the items limit per load is set to 100 and 160 toots have been posted after the last time you loaded toots, it should load 100 toots and allow to load more toots.

Actual behavior

Twidere loads only 40 toots, whereas I set the items limit per load to 200. It doesn't allow to load more toots. The only moment when I can load more than 40 toots is when there are no toots stored in the database.

Steps to reproduce

Load toots when more than 40 toots have been posted.

Extra info

I don't use auto refresh. This behavior is only with Mastodon, with both my accounts, but not with my Twitter accounts. To get around the issue, I recently tried and put the limit to 35: Twidere loaded 35 toots and proposed to load more, and I was able to see all the toots.

Android version: (version code here) 7.1.1

Network type:

App version: (version code here)

Build variant:

Micro-blogging service:

App settings:

georgedorn commented 6 years ago

It doesn't allow to load more toots.

I just noticed this behavior yesterday. Even since turning off my Twitter feed (a month ago), I have been missing hundreds of toots without noticing. Gaps in the Twitter timeline would prompt the "Load more tweets" button, but Mastodon-only timelines never get that button.

ehashman commented 6 years ago

I have encountered the same bug, confirmed that this is still an issue.

trwnh commented 6 years ago

I think "40 items per load" is an API limitation, but you should be able to load more/missing toots by using the since_id and max_id.

Tedko commented 4 years ago

Cant reproduce on myside. @trwnh @ehashman @georgedorn @Ezelty can you reproduce this issue?

ehashman commented 4 years ago

@Tedko yep, same reproduce. Log in with Mastodon, load latest posts, don't get a "Load more..." button for more than 40 toots per account.

I imagine this should be reproducible on a clean install since surely there should be more than 40 toots available on an active timeline?