Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to open the PDF attachment of a post doesn’t work #4729

Open
ariasuni opened this issue Oct 16, 2024 · 2 comments
Open

Trying to open the PDF attachment of a post doesn’t work #4729

ariasuni opened this issue Oct 16, 2024 · 2 comments
Labels

Comments

@ariasuni
Copy link
Contributor

Detailed description

On Mastodon when, when I go a post (made with Pleroma) with a PDF attachment, it’s the wrong link that is a 404, instead of the actual link to the PDF file.

Steps to reproduce the problem

  1. Go to a post with a PDF attachment, e.g. https://social.lithio.fr/objects/21a14386-464a-4e9a-9b19-88e5c1207c75
  2. Try to open the attachment
  3. Goes to https://eldritch.cafe/media_proxy/113214773399088541/original instead of https://social.lithio.fr/media/ec7d276e-8d10-4ed8-a75f-f9178849f3a5/Critique%20succincte%20de%20la%20non-mixit%C3%A9%20sans%20hommes%20cisgenres%20queer%20-%20Klanid%20Reckmar.pdf

Debug information

Tusky 26.2

Device:

Google Pixel 7 
Version Android : 14 
Version SDK : 34

Account:

@melunaka@eldritch.cafe 
Version : 4.3.0-beta.1+glitch
@ariasuni ariasuni added the bug label Oct 16, 2024
@connyduck
Copy link
Collaborator

connyduck commented Oct 16, 2024

This is very interesting 🧐, thank you for reporting!

Interesting because the Mastodon frontend does not show an attachment at all. The Api returns an url to the attachment, but that one 404s. I don't know how Tusky could work around that, we can't just hit every attachment url and see if it 404s. And we can also not go to the remote url as default, because that would direct way too much traffic to the wrong instances. We could defintely do the same as the Mastodon frontend and not show the attachment to the user, but that sucks. Honestly it is kinda a Mastodon bug. Mastodon should either 1) not return an attachment at all or 2) return a working url.

@ariasuni
Copy link
Contributor Author

I’m not sure what you mean by

We could defintely do the same as the Mastodon frontend and not show the attachment to the user»

because I can see the attachment, at least in glitch-soc:

image

I would create the issue for Mastodon but I don’t understand of enough of what happens here, what are the APIs used, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants