cawbird
cawbird copied to clipboard
Saving picture from private message does not work
Describe the bug
When I try to save the image sent in private using right click → save as, the file is created, but it is 0 bytes.
If I right click → open in browser on the picture, it opens the URL on ton.twitter.com
domain, which returns 404 (does not show the picture).
To Reproduce Steps to reproduce the behavior:
- Open private message with some picture
- Right-click on it, press "save as…"
- Save the file
- Try to open saved picture
Expected behavior The picture is downloaded and saved correctly.
Actual result The saved picture file is 0 byte in size.
System details:
- OS: Fedora 35
- Version: 1.5
- Package type: Fedora package
Additional context
(cawbird:50181): cawbird-DEBUG: 20:07:44.744: Removing avatar with id 90142118 from cache
(cawbird:50181): cawbird-DEBUG: 20:07:44.745: BadgeRadioButton.vala:23: New show_badge value: false
(cawbird:50181): cawbird-DEBUG: 20:07:44.745: DMThreadsPage.vala:282: unread_count -= 0
(cawbird:50181): cawbird-DEBUG: 20:07:56.674: MediaButton.vala:303: Downloading https://ton.twitter.com/1.1/ton/data/dm/XXXXXXXXXXXX/YYYYYYYYYYYYY/CfOoYh3Q.png:orig to /home/valdikss/CfOoYh3Q.png
(cawbird:50181): cawbird-DEBUG: 20:07:57.568: MediaButton.vala:315: Download of https://ton.twitter.com/1.1/ton/data/dm/XXXXXXXXXXXX/YYYYYYYYYYYYY/CfOoYh3Q.png:orig finished
Twitter requires proper HTTP referrer of the DM chat, otherwise 404 is returned.