[bug] Timeline jumps to a distant date when scrolling back #399
Labels
No labels
a11y
Bug
Bug fix
Critical Priority
Documentation
Feature
Feature request
Held for next release cycle
High Priority
Low Priority
Medium Priority
Minor change
Translation/Locale
WIP
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma-fe#399
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Version
3e86db24d3
What were you trying to do?
Scrolling down the timeline to read older posts
What did you expect to happen?
Timeline will show older posts regularly (i.e if the oldest post so far was 30 minutes ago, it'll show the newest post as of 30 minutes ago and so on)
What actually happened?
Timeline shows posts from 1-3 months ago and continues from there.
Severity
I cannot use it as easily as I'd like
Have you searched for this issue?
Can you provide the API response, including the pagination
Link
header, from just the page before and after it skipped around? Feel free to replace post content and author fieldssent a message on xmpp since there's too much sensitive stuff to filter out (and I'm not great at using jq)
Sumarsing current insight and listing related useful
jq
as examples (though a simple, e.g. Python, script can also achieve the same if that’s easier)The date skip happens from one TL request to the next, not inside the results from one request.
There’s no boosted or quoted post falling inside the new time range.
Looking at all made TL requests and their paginatiok
Link
header showsthe frontend suddenly stopped following the
next
link when the skip occurs;for all other requests the subsequent fetch matches the
next
link.jq
filter for all API requests and theirLink
headers if any:The
max_id
value the frontend used for the time-skip query instead of the one from the pagination header does not occur in any of the prior or later home TL responses or queries. So far only home TL requests got captured thus we don’t know whether and which other request may have returned it and messed up the frontend’s pagination cursor, or if it was an older locally cached post which for some reason got mixed in. Querying the link from pagination headers yields the expected results.Analyzing a complete network dump for if/whehre the culprit slipped in (and/or staring really hard at fe’s pagination code) is the next step.
The response body of API requests is in an entry’s
.response.content.text
and a lon single-line string not directly JSON object. Meaning when searching for a response containing a particular post a"AAApostId"
pattern won't work as the actual content will be\"id\":\"AAApostId\"
; prob easiest to just grep the the entire HAR for matches of the ID likegrep -nEo '.{0,20}AAApostId.{0,20}'
and manually check all matches looking like response bodies.This already confirms it’s definitely a frontend issue though.