this post was submitted on 14 Jul 2024
74 points (98.7% liked)

Voyager

5585 readers
16 users here now

The official lemmy community for Voyager, an open source, mobile-first client for lemmy.

Download on App Store

Download on Play Store

Use as a Web App

Download on F-Droid

Rules

  1. Be nice.
  2. lemmy.world instance policy

Sponsor development! 👇

Number of sponsors badge

💙

founded 1 year ago
MODERATORS
 

I can’t notice a pattern, but it happens all the time in both instances I use. I get to a post and there’s an image that can’t be loaded. I open the post on the browser and it loads fine.

(I’d share a screenshot of the browser but the inline picture upload feature is giving me grief now. ☹️)

Here’s the sample post: https://feddit.org/post/538582

top 12 comments
sorted by: hot top controversial new old
[–] aeharding@vger.social 31 points 3 months ago* (last edited 3 months ago) (2 children)

Hi there!

So, I've investigated this problem many times, and in the case of your example post its the same issue I've seen before.

On your instance (mander.xyz), the image is not available. As an example, try to load the following link (in your browser):

https://mander.xyz/post/15080092 (MUST OPEN IN BROWSER)

As you can see the image is broken, because the image is not cached on mander.xyz, and also the original link is broken.

However, when you tap the "link" button in Voyager you are viewing the post on feddit.org where the image is cached. That's why this works:

https://feddit.org/post/538582 (MUST OPEN IN BROWSER)

This also explains why the image works for some people and not others. Because at some point the original image link broke, and some instances had the image cached by then, but not others.

That's also why usually the image will work on the origin server (in this case, feddit.org). Because the image was originally posted there, and that server was the first one to cache it (before the origin image broke).

I've thought about some workarounds for this scenario. Voyager could theoretically request the post payload from the origin lemmy instance (AP URL) and then use that cached image URL. However, this reduces privacy somewhat because your lemmy app is now connecting to an arbitrary lemmy instance.

Maybe it will be a setting in the future.

As others said, other apps are also affected by this issue because it's not a Voyager specific issue.

Another side note, this could potentially be fixed in Lemmy backend. Lemmy devs could fetch the cached image from the upstream Lemmy server instead of using the original image URL, if it is broken.

Edit: I made a request in Lemmy issue tracker. https://github.com/LemmyNet/lemmy/issues/4899

[–] acockworkorange@mander.xyz 9 points 3 months ago (1 children)

Thank you, that makes a lot of sense. And thank you for Voyager!

[–] aeharding@vger.social 8 points 3 months ago

Of course 😁

[–] A_Very_Big_Fan@lemmy.world 3 points 3 months ago

It makes so much more sense after reading this lol. Thanks for your wisdom and hard work!

[–] Linsensuppe@feddit.org 8 points 3 months ago

Same for me. The example post works for me though…

[–] A_Very_Big_Fan@lemmy.world 6 points 3 months ago

FWIW this happens a lot on Sync too

[–] RandomLegend@lemmy.dbzer0.com 5 points 3 months ago
[–] acockworkorange@mander.xyz 4 points 3 months ago

Here’s the browser screenshot.

[–] colderr@lemmy.world 4 points 3 months ago

Yeah that happens to me a lot aswell.

[–] pewgar_seemsimandroid@lemmy.blahaj.zone 1 points 3 months ago (1 children)
[–] acockworkorange@mander.xyz 2 points 3 months ago (1 children)

It doesn’t seem to be contained to that specific site.