Bug 504946

Summary: The tokodon does not attach file and a survey when creating a publication
Product: [Applications] Tokodon Reporter: tatyana <tatyana>
Component: generalAssignee: Unassigned bugs <unassigned-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: carl, josh
Priority: NOR    
Version First Reported In: 25.04.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: the survey is already attached
the file is already attached

Description tatyana 2025-05-29 06:38:11 UTC
Created attachment 181844 [details]
the survey is already attached

STEPS TO REPRODUCE
1. Install:
# apt-get install tokodon

2. Run:
$ tokodon

3. Login to your account

4. Create a "+Publication" post -> click on the "Attach file" paperclip -> click on the "Attach poll".

EXPECTED RESULT
The file and the survey are attached when creating a single entry.

OBSERVED RESULT
It is not possible to attach a survey and a file to a publication at the same time.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  ALT Workstation K 11.0 
KDE Frameworks Version:  6.14.0
Qt Version:  6.8.2
Kernel:  6.12.30-6.12-alt2
Comment 1 tatyana 2025-05-29 06:39:21 UTC
Created attachment 181845 [details]
the file is already attached
Comment 2 Joshua Goins 2025-05-29 09:13:17 UTC
This is intentional, Mastodon does not support showing both at once so it's just not allowed.
Comment 3 tatyana 2025-05-29 09:29:52 UTC
(In reply to Joshua Goins from comment #2)
> This is intentional, Mastodon does not support showing both at once so it's
> just not allowed.

Thanks for the answer!
Comment 4 Bug Janitor Service 2025-05-29 09:49:22 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/tokodon/-/merge_requests/746
Comment 5 Joshua Goins 2025-06-04 11:27:57 UTC
Git commit 42c16aa47c57fcfc67dd6ede9b678c3a11617660 by Joshua Goins.
Committed on 04/06/2025 at 11:27.
Pushed by redstrate into branch 'master'.

Add better tooltips for disabled poll and attachment buttons

This prevents confusion to people new to Mastodon, and may not be aware
that they don't allow showing both media and polls at the same time. We
previously disabled the button (which matches upstream Mastodon Web) but
don't actually give an explanation in-application as to why.

Now the tooltips for these buttons match their disabled state.

M  +22   -2    src/content/ui/StatusComposer/StatusComposer.qml

https://invent.kde.org/network/tokodon/-/commit/42c16aa47c57fcfc67dd6ede9b678c3a11617660