IBBoard / cawbird

A fork of the Corebird GTK Twitter client that continues to work with Twitter
https://ibboard.co.uk/cawbird/
GNU General Public License v3.0
309 stars 37 forks source link

Saving picture from private message does not work #467

Open ValdikSS opened 2 years ago

ValdikSS commented 2 years ago

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:

  1. Open private message with some picture
  2. Right-click on it, press "save as…"
  3. Save the file
  4. 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:

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
ValdikSS commented 2 years ago

Twitter requires proper HTTP referrer of the DM chat, otherwise 404 is returned.