-
-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tusky not loading new toots #1022
Comments
😣 |
|
The increment/decrent were needed to have an overlap with existing statuses so we're sure that there's no gap. It's not needed for bottom but needed for top loading I think. We should re-think how to do this (didn't look at that line, I'm from my phone, we'll look at this today) |
Ok I understand, but why can't we use the old logic were we counted the number of returned statuses to determine wheter or not to show a gap? In both cases we can never be sure and can always run into the case where we show a gap and it loads nothing. |
Because I don't want to insert a gap into dB when it's not needed. We can do that but I cannot wrap my head around it rn. |
Ok lets say top status has id X, and we request at most 20 statuses from the top. Yes link headers indicate the next and previous page. |
Let's say top status has ID X. We request 21 statuses with I know that the headers do indicate the next page, it was not the question. I was wondering if the header has parameter set to the item in the next list or in the current one. What I found out is that 2.6 sends |
Ahhh but we always only display 20 statuses, so the gap always loads something. Ok clever. What if we don't decrement the id ourselves but use the id of the 2nd status? |
That's wasteful but it is the only way I've found to reliably check it. top_status then grabbing the second status is ambigious. |
Ah right. But that case is very rare (how can you even get there? When all statuses between top and gap are deleted?) and we can detect it and just send a request with no |
Indeed. I can try out to hack it together today or tomorrow. |
Tusky is not loading new toots when pulling to refresh for one of my accounts.
the reason is it is querying the api with a wrong parameter
api/v1/timelines/home?since_id=10151730742138560z&limit=32
(note thez
)looks like a regression from #1016
will try to come up with steps to reproduce
The text was updated successfully, but these errors were encountered: