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

Feature: integrate instance agnostic link sharing service #172

Open
graphit0 opened this issue Nov 7, 2023 · 4 comments
Open

Feature: integrate instance agnostic link sharing service #172

graphit0 opened this issue Nov 7, 2023 · 4 comments

Comments

@graphit0
Copy link

graphit0 commented Nov 7, 2023

What do you want to see?
Integrate https://github.com/RikudouSage/lemmyverse.link / https://lemmyverse.link/ i.e. instance agnostic link sharing service

Use Case
Instance agnostic links simplify sharing content outside of fediverse
Suppose you come across a link to lemmy post on non-native instance.
Like that https://lemmy.world/post/7284890

How do you open it?
Let's face it, searching in your home instance with post name is very inconvenient
Instance agnostic links address this problem
example of instance agnostic link https://lemmyverse.link/lemmy.world/post/7284890

After clicking this link you can set your home instance and the post will be opened there

Why

  • improve discoverability of Lemmy Explorer since a lot of links going to be pointing to it
  • allow users to rely on home instance they set on Lemmy Explorer while redirected by instance agnostic link

I have no affiliation to the service, I simply like to use it

@tgxn
Copy link
Owner

tgxn commented Nov 12, 2023

oh yeah i get you, basically a redirection service

like:
https://lemmyverse.net/link/lemmy.world/c/world -> https://your.home/c/[email protected]
easy, data is in URL

https://lemmyverse.net/link/lemmy.world/post/7284890
don't we need to know the post ID on your local instance for this to work?

@graphit0
Copy link
Author

don't we need to know the post ID on your local instance for this to work?

Yes indeed, we need to API query the target/home instance to get post ID. You can see how author does it in linked github: file LemmyObjectResolver

I realize that it's much more difficult than simple link reformatting, that's why I proposed integrate his solution if it's possible.

@tgxn
Copy link
Owner

tgxn commented Dec 31, 2023

I think community redirection would be doable easily, but maybe the post redirection is a bit out-of-scope, since it would involve realtime scraping of the source and target instance.

@tgxn tgxn added the frontend label Dec 31, 2023
@tgxn
Copy link
Owner

tgxn commented Jan 3, 2025

https://github.com/RikudouSage/lemmyverse.link

https://github.com/RikudouSage/lemmyverse.link/blob/master/src/Controller/LemmyLinkController.php

The only way to perform the post ID redirection would be to use a backend service.
Their architecture has a backend component hosted on AWS, and I don't have plans to run a backend for this service.

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

No branches or pull requests

2 participants