Bug 505213

Summary: Tokodon does not refresh the timeline
Product: [Applications] Tokodon Reporter: zeiglerr
Component: generalAssignee: Unassigned bugs <unassigned-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: carl, josh
Priority: NOR    
Version First Reported In: 25.04.1   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 25.04.3
Sentry Crash Report:

Description zeiglerr 2025-06-04 17:00:50 UTC
SUMMARY
Tokodon does not refresh the timeline automatically even when the toggle to do so is checked

STEPS TO REPRODUCE
1. Log in to a mastodon account on mastodon.social
2. Wait a while
3. Flip to a different sidebar view and then flip back

OBSERVED RESULT
New content appears

EXPECTED RESULT
The new content would have appeared automatically

SOFTWARE/OS VERSIONS
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version:  6.9.0

ADDITIONAL INFORMATION
The error logs contain the following message

wss://mastodon.social/api/v1/streaming?access_token=ACCESS_TOKEN&stream=user: QWebSocketPrivate::processHandshake: Unhandled http status code: 301 (Moved Permanently).

I suspect that this web socket is needed for streaming to work and failing to follow the redirect means no refresh triggers are happening.
Comment 1 Joshua Goins 2025-06-04 20:56:57 UTC
Git commit 3370d23263ce57ec86b8baaab6e4b81fc7f55d82 by Joshua Goins.
Committed on 04/06/2025 at 20:56.
Pushed by redstrate into branch 'master'.

Fix timeline streaming when the server configured it for another URL

We assumed that the WebSocket streaming connection lived on the same
server URL as everything else, but even high-profile servers like
mastodon.social have it under a different subdomain.

M  +7    -2    src/account/abstractaccount.cpp
M  +1    -0    src/account/abstractaccount.h
M  +9    -2    src/account/account.cpp

https://invent.kde.org/network/tokodon/-/commit/3370d23263ce57ec86b8baaab6e4b81fc7f55d82
Comment 2 Joshua Goins 2025-06-04 21:01:15 UTC
Git commit d3e2c82ce0958dd19c09ed0031099dfc4c439ac2 by Joshua Goins.
Committed on 04/06/2025 at 20:57.
Pushed by redstrate into branch 'release/25.04'.

Fix timeline streaming when the server configured it for another URL

We assumed that the WebSocket streaming connection lived on the same
server URL as everything else, but even high-profile servers like
mastodon.social have it under a different subdomain.

(cherry picked from commit 3370d23263ce57ec86b8baaab6e4b81fc7f55d82)

M  +7    -2    src/account/abstractaccount.cpp
M  +1    -0    src/account/abstractaccount.h
M  +9    -2    src/account/account.cpp

https://invent.kde.org/network/tokodon/-/commit/d3e2c82ce0958dd19c09ed0031099dfc4c439ac2