Bug 485807 - No timeline auto-update?
Summary: No timeline auto-update?
Status: RESOLVED FIXED
Alias: None
Product: Tokodon
Classification: Applications
Component: general (show other bugs)
Version: 24.02.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-19 18:40 UTC by l33tmmx
Modified: 2024-12-01 11:55 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 24.12
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description l33tmmx 2024-04-19 18:40:54 UTC
SUMMARY
Not really a bug report but an important feature request:
I've been testing several Mastodon desktop front-ends lately. Tokodon is one near the top of the list, and an obvious choice for a KDE user, but... it has one serious flaw: it doesn't auto-update the home timeline; actually, Tokodon is the only app I've tested which doesn't do that in one way or other!

It is incredibly frustrating to be forced to keep clicking the home button to keep the timeline up-to-date. So, PLEASE add an auto-update system to Tokodon, preferably with user-definable intervals.

OBSERVED RESULT
Absolutely nothing happens

EXPECTED RESULT
Timeline updates automatically

SOFTWARE/OS VERSIONS
Linux: Arch Linux 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION
Comment 1 Joshua Goins 2024-04-20 13:01:07 UTC
It does update automatically, actually. Can you upload an application log to see if maybe Tokodon is reporting that it's unable to connect to your server's websocket? I have to admit that our [auto-update] system is a little finicky and needs more work, but it definitely should work to some degree right now.
Comment 2 l33tmmx 2024-04-20 13:23:34 UTC
Where does Tokodon store its logs?
Comment 3 Joshua Goins 2024-10-19 22:30:42 UTC
(In reply to l33tmmx from comment #2)
> Where does Tokodon store its logs?

It doesn't store it's logs anywhere yet, you should need to run it from the console. I think it would also show up under journalctl, but you would have to figure out how to filter to it.
Comment 4 Joshua Goins 2024-11-30 18:27:10 UTC
Git commit 5b34d28a2b3d356bbb3fa16e1060600d6a598a9b by Joshua Goins.
Committed on 30/11/2024 at 16:21.
Pushed by redstrate into branch 'master'.

Emit warnings to the log for websocket errors

This is needed to figure out any network errors related to websockets.

M  +3    -0    src/account/account.cpp

https://invent.kde.org/network/tokodon/-/commit/5b34d28a2b3d356bbb3fa16e1060600d6a598a9b
Comment 5 Joshua Goins 2024-11-30 18:27:12 UTC
Git commit 6be4f5d0cd188e541d8db979873f0e76de46e0ab by Joshua Goins.
Committed on 30/11/2024 at 17:53.
Pushed by redstrate into branch 'master'.

Add error log page in the settings

This gives you the error string and the URL that failed in a visible
place in the UI. The last five error messages are saved across restarts,
making this extremely useful for bug reports.

Currently this is only really used for network errors but could be
expanded for other types of errors later.

M  +1    -0    src/CMakeLists.txt
M  +4    -2    src/account/account.cpp
A  +94   -0    src/content/ui/Settings/ErrorLogPage.qml     [License: GPL(3+eV) GPL(v3.0) GPL(v2.0)]
M  +6    -0    src/content/ui/Settings/TokodonConfigurationView.qml
M  +43   -0    src/network/networkcontroller.cpp
M  +21   -0    src/network/networkcontroller.h

https://invent.kde.org/network/tokodon/-/commit/6be4f5d0cd188e541d8db979873f0e76de46e0ab
Comment 6 Joshua Goins 2024-11-30 18:27:18 UTC
Git commit b2c2cf58a542aa9ea65548e8bec188f7a7400103 by Joshua Goins.
Committed on 30/11/2024 at 16:24.
Pushed by redstrate into branch 'master'.

Emit HTTP errors that are handled in the debug log channel

Previously we didn't print these in the log, assuming errorCallback
handles them. But it's probably still worth logging these if a user is
interested in them.

M  +3    -1    src/account/account.cpp

https://invent.kde.org/network/tokodon/-/commit/b2c2cf58a542aa9ea65548e8bec188f7a7400103
Comment 7 Joshua Goins 2024-11-30 18:37:41 UTC
Git commit 0ee9c3d4d3a95c385937291e4e3e365c70e772f7 by Joshua Goins.
Committed on 30/11/2024 at 18:27.
Pushed by redstrate into branch 'release/24.12'.

Emit warnings to the log for websocket errors

This is needed to figure out any network errors related to websockets.
(cherry picked from commit 5b34d28a2b3d356bbb3fa16e1060600d6a598a9b)

M  +3    -0    src/account/account.cpp

https://invent.kde.org/network/tokodon/-/commit/0ee9c3d4d3a95c385937291e4e3e365c70e772f7
Comment 8 Joshua Goins 2024-11-30 18:37:49 UTC
Git commit 832f6a8e730a51f00c22f61fccc183e438fe84bf by Joshua Goins.
Committed on 30/11/2024 at 18:27.
Pushed by redstrate into branch 'release/24.12'.

Emit HTTP errors that are handled in the debug log channel

Previously we didn't print these in the log, assuming errorCallback
handles them. But it's probably still worth logging these if a user is
interested in them.
(cherry picked from commit b2c2cf58a542aa9ea65548e8bec188f7a7400103)

M  +3    -1    src/account/account.cpp

https://invent.kde.org/network/tokodon/-/commit/832f6a8e730a51f00c22f61fccc183e438fe84bf
Comment 9 Joshua Goins 2024-11-30 21:20:42 UTC
What instance are you running? I just noticed a possible bug, but it depends on your instance's configuration.
Comment 10 Bug Janitor Service 2024-12-01 08:10:04 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/tokodon/-/merge_requests/601
Comment 11 snow flurry 2024-12-01 11:20:29 UTC
Git commit 17b34ee533d942539d807011cf9ef417277bf656 by snow flurry.
Committed on 01/12/2024 at 07:58.
Pushed by redstrate into branch 'master'.

Send User-Agent for streaming API

GoToSocial requires a User-Agent header to be sent on all requests, or
else HTTP 418 I'm a Teapot is returned. This is done by default for
QNetworkRequest, but not QWebSocket.

M  +3    -1    src/account/account.cpp

https://invent.kde.org/network/tokodon/-/commit/17b34ee533d942539d807011cf9ef417277bf656