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

[Bug]: Lemmy UI URL used in image posts instead of Lemmy URL #2942

Open
5 tasks done
Fmstrat opened this issue Jan 31, 2025 · 4 comments
Open
5 tasks done

[Bug]: Lemmy UI URL used in image posts instead of Lemmy URL #2942

Fmstrat opened this issue Jan 31, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@Fmstrat
Copy link

Fmstrat commented Jan 31, 2025

Requirements

  • Is this a bug report? For questions or discussions use https://lemmy.ml/c/lemmy_support
  • Did you check to see if this issue already exists?
  • Is this only a single bug? Do not put multiple bugs in one issue.
  • Do you agree to follow the rules in our Code of Conduct?
  • Is this a backend issue? Use the lemmy-ui repo for UI / frontend issues.

Summary

First off, I assume this is related to the backend selection and delivery of the URL in the ActivityPub Note, even though it's about URL usage. If I should move this issue, please let me know.

When posting an image via Lemmy UI, the federated URL used with that image is the Lemmy UI URL and not the Lemmy URL. This isn't usually an issue, since they are normally hosted at the same URL, but for my instance, that is not the case. My Lemmy UI is private, and my Lemmy backend is public.

Specifically, I am talking about the italic programming.dev below:

Image

This is also a link to a non-accessible resource, because it's using the wrong URL.

Steps to Reproduce

  1. Run Lemmy Backend at lemmy.domain.com
  2. Run Lemmy UI at lemmy-ui.domain.com
  3. Post an image from Lemmy UI to a community on lemmy.other-domain.com
  4. Visit the post on lemmy.other-domain.com
  5. Underneath the image will be a display of italic lemmy-ui.domain.com with a broken link of https://lemmy-ui.domain.com/pictrs/image/<uuid>.png instead of lemmy.domain.com with a working link of https://lemmy.domain.com/pictrs/image/<uuid>.png

Technical Details

n/a

Version

BE: 0.19.3

Lemmy Instance URL

lemmy.nowsci.com

@Fmstrat Fmstrat added the bug Something isn't working label Jan 31, 2025
@flamingo-cant-draw
Copy link

I'm pretty sure this is a lemmy-ui issue, but just to make sure could you try posting from a mobile app or something like https://phtn.app and see if it happens there as well?

@Nutomic
Copy link
Member

Nutomic commented Feb 4, 2025

Which exact field of the api response do you mean? You can see it in browser dev tools.

@Fmstrat
Copy link
Author

Fmstrat commented Feb 4, 2025

@flamingo-cant-draw I believe you are correct. I drafted a post in Thunder and my server returns the backend URL for the image there. Is there a recommended way to move this issue over, or should I just duplicate it?

@Nutomic Nutomic transferred this issue from LemmyNet/lemmy Feb 4, 2025
@Nutomic
Copy link
Member

Nutomic commented Feb 4, 2025

I moved it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants