Bug 461484

Summary: Unable to save unchecked timelines for Mastodon account
Product: [Unmaintained] choqok Reporter: Evan McLean <ecognito>
Component: MastodonAssignee: Andrea Scarpino <scarpino>
Status: RESOLVED UNMAINTAINED    
Severity: major CC: ecognito, jgoodwin, kdedevel
Priority: NOR    
Version First Reported In: Git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Candidate (partial) fix for the issue

Description Evan McLean 2022-11-06 04:21:46 UTC
SUMMARY

I am trying to uncheck the Local and Federated timelines from my Mastodon account (only really want to display Home) however when I save, it does not have any effect. When I reopen the account settings, all timelines are still checked.


STEPS TO REPRODUCE
1. Select Settings -> Configure Choqok from the main window's menu.
2. Select Accounts panel in configuration window.
3. Click on your Mastodon account.
4. Click Modify...
5. Click the Timelines Configuration tab.
6. Uncheck the Local and Federated timelines.
7. Click OK to save account settings.
8. Click OK in the Configuration window to save and close it.

OBSERVED RESULT

You'll notice in the main window that the Local and Federated timelines are still visible.

If you repeat steps 1 to 5, you'll also see that all the timelines are still checked.

EXPECTED RESULT

The Local and Federated timelines would not be visible or retrieved.

The checkboxes for those two timelines would be unchecked in the account settings.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: ArchLinux
(available in About System)
KDE Plasma Version: 5.26.2
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.7+kde+r168 (also 6.4.0)

ADDITIONAL INFORMATION
Comment 1 Julien Goodwin 2022-11-11 07:24:37 UTC
Any attempt to modify an existing Mastodon account, even if no changes are made, errors out for me with:
"Cannot validate your input information.
Please check the fields' data.
Maybe a required field is empty?"

There's no obvious more detailed message in the logs. Debian package version 1.7.0-1.
Comment 2 Evan McLean 2022-11-13 05:55:09 UTC
There seems to be an additional bug with the Edit Account configuration window: On the first tab, it does not remember the domain part of your credentials. So add the '@domain' part back and it then click Ok and it will close without an error message (although it still does not save the details properly).
Comment 3 Evan McLean 2022-12-14 09:32:27 UTC
As a workaround, would there be a way to fiddle the Choqok config file to remove the Local and Federated timelines? Because they keep contributing to the unread count in the tray icon, it makes it difficult to know when there's something new in the timelines I'm more interested in. Thanks.
Comment 4 Julien Goodwin 2022-12-15 07:16:04 UTC
Evan:
Modifying the config file sadly appears to not work.
Comment 5 Simon St James 2023-07-29 12:13:02 UTC
Created attachment 160604 [details]
Candidate (partial) fix for the issue

See attached patch (diffed from 2c1a1873ac69763b7b82fc0a891b9e16e449901b).

This seems to work, but *requires choqok to be restarted before the Timeline Configuration changes properly take effect* i.e. unchecking "Local" via the "Timeline Configuration" will still leave the "Local" timeline being shown (and refreshed with new posts) until Choqok is quit and re-started.

If there's interest, I can make this into a pull request.
Comment 6 Simon St James 2023-07-29 12:50:50 UTC
(In reply to Simon St James from comment #5)
> "Timeline Configuration" will still leave the "Local" timeline being shown
> (*and refreshed with new posts*) 

Correction: it seems that the patch works better than expected, and should immediately disable updates (i.e. without needing to restart choqok).
Comment 7 Christoph Cullmann 2025-06-09 20:08:05 UTC
Choqok is unfortunately no longer maintained.

If a new maintainer wants to step up and take care, the project is archived here:

https://invent.kde.org/network/choqok

You can just clone it in your private namespace on invent.kde.org and if you have started to work on it and fixed/implemented something get it reviewed and the project unarchived.

Sorry for the inconveniences.