Bug 488629

Summary: Cannot Copy & Paste Image [Feature Maybe?]
Product: [Applications] Tokodon Reporter: Nicco Kunzmann <niccokunzmann>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: carl, josh
Priority: NOR    
Version: 24.02.2   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed In: 24.08
Sentry Crash Report:

Description Nicco Kunzmann 2024-06-17 18:12:57 UTC
SUMMARY

When I copy an image, I cannot paste it into a new post on Tokodon.

STEPS TO REPRODUCE
1. I went into firefox and took a screen shot, copied it to clipboard
2. I went to tokodon to make a new post
3. I copied the picture into the new post

OBSERVED RESULT

Nothing happens

EXPECTED RESULT

I would like it to do the same as if I picked a picture from the file system 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 
Qt Version: 6.6.3

ADDITIONAL INFORMATION
Comment 1 Joshua Goins 2024-06-18 23:44:13 UTC
It should definitely paste, I'll test soon and see if something is still broken
Comment 2 Bug Janitor Service 2024-07-06 15:59:39 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/tokodon/-/merge_requests/514
Comment 3 Joshua Goins 2024-07-06 16:05:54 UTC
Git commit 7c55aad2fee1eeeb498a9e2b1419d8156622a3e0 by Joshua Goins.
Committed on 06/07/2024 at 16:00.
Pushed by redstrate into branch 'master'.

Allow pasting bitmap images directly, like from the Internet

Now Tokodon supports pasting bitmaps directly from applications, which
is common when copying from web browsers.

This works by saving the image temporarily to a file when is then
deleted when the editor closes.

M  +16   -2    src/content/ui/StatusComposer/StatusComposer.qml
M  +12   -0    src/editor/attachmenteditormodel.cpp
M  +3    -0    src/editor/attachmenteditormodel.h

https://invent.kde.org/network/tokodon/-/commit/7c55aad2fee1eeeb498a9e2b1419d8156622a3e0