voyager icon indicating copy to clipboard operation
voyager copied to clipboard

Share Lemmy links with Voyager links

Open kerosyn opened this issue 2 years ago • 1 comments

To spread Voyager as much as possible links should have the option be shared via Voyager links.

Now that a few servers are hosting their own copies of Voyager (like Lemmy.world), they could even share the locally hosted version of Voyager to spread load more.

Example:

Regular link: https://lemmy.world/post/1234334

Hosted Voyager link: https://m.lemmy.world/posts/lemmy.world/c/[email protected]/comments/1234334

Voyager hosted: https://vger.app/posts/lemmy.world/c/[email protected]/comments/1234334

kerosyn avatar Jul 11 '23 04:07 kerosyn

@aeharding if you want this I could add it with #202, either as a setting or a third option.

rsammelson avatar Jul 11 '23 04:07 rsammelson

This has some work that needs to be done beforehand, such as dealing with links to instances that aren't the one that you're logged in with.

If you're logged in with lemmy.world, and try to view a post with a Voyager link to lemmy.ml, it won't let you (by design) so what should happen? Should it appear as if you're logged out when you're browsing that instance? How is that messaged so it doesn't appear as if things are broken? What if you try to upvote?

We could leave you logged in and attempt to redirect... but post IDs are different between instances, so we'd have to resolve the post ID for your local instance. What if your local instance doesn't have that post?

:( Lot of work before this can be done.

aeharding avatar Jul 12 '23 02:07 aeharding

@aeharding could be a good starting point

https://github.com/ManeraKai/fediredirect/blob/main/src/pages/lib/lemmy.js

mdecourcy avatar Jul 12 '23 15:07 mdecourcy