https://bugs.kde.org/show_bug.cgi?id=515271
Bug ID: 515271
Summary: Home timeline is empty because of invalid max_id query
parameter
Classification: Applications
Product: Tokodon
Version First 25.12.1
Reported In:
Platform: Manjaro
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Target Milestone: ---
SUMMARY
"Home" timeline shows "No Posts" placeholder text instead of posts on
`timelineView`. This is because of an "invalid" `max_id` parameter being sent
to `api/v1/timelines/home` API.
STEPS TO REPRODUCE
1. Open Tokodon and login with your Mastodon account.
2. Let the app open "Home" page.
OBSERVED RESULT
User sees "No Posts" placeholder instead of timeline posts.
EXPECTED RESULT
User should see their timeline feed as seen in a web browser.
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro Linux
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.21.0
Qt Version: 6.10.1
ADDITIONAL INFORMATION
I tried logging out and re-logging into Tokodon to see if this fixed it but it
did not.
### FOUND WORKAROUND
I found a workaround to this problem.
We need to simply comment out the following code in `maintimelinemodel.cpp`
file
```cpp
// maintimelinemodel.cpp
if (!fromId.isEmpty() && !query.hasQueryItem(QStringLiteral("max_id"))) {
// TODO: this is an *upper bound* so it always is one less than the
last post we read
// is this really how it's supposed to work wrt read markers?
query.addQueryItem(QStringLiteral("max_id"), fromId);
}
```
This hack fixes the issue as I am able to see and interact with the posts in
"Home" timeline.
My Mastodon post mentioning the fix for this bug:
https://social.linux.pizza/@shanmukhateja/115979662833544329
### MORE BUGS
1. Failure to invalidate `max_id`
2. Lack of retry logic w/o `max_id` if API response (`data` variable) is empty
and `max_id` is set.
3. When user logged out, such data should be deleted as well. A full logout
from the app should've reset this data.
--
You are receiving this mail because:
You are watching all bug changes.