How do I format a link to a remote lemmy community that allows someone to subscribe to it directly from their own instance?
An example of such a post is here https://lemmy.blahaj.zone/post/4711. This is a post made for a community on mander.xyz, posted to lemmy.ml and viewed through my instance blahaj.zone.
Whichever instance you view it on, the link formats so that you can subscribe to it directly from the instance you are viewing it on.
I’ve tried using /c/communityname formatting, but that doesn’t seem to work.
Support / questions about Lemmy.
It looks like it was done as a relative link, like this:
It’s possible to look at the source of a Lemmy post by clicking on the 3 dots in the toolbar that is under the poster and community but above the post’s contents, and then clicking the “view source” button.
Perfect. Thank you!
I learned two things from that post :)
Yes, that is how I did it :-)
It works for communities because their relative url is always /firstname.lastname@example.org
For posts and comments it won’t work because the post and comments IDs are different for each instance. For example, this post is at https://mander.xyz/post/520556 at mander and at https://lemmy.blahaj.zone/post/6506 at blahaj.zone, so the relative urls are different.
If you know what their instance is, you can do:
Right, but then if someone saw the post on lemmy.ml, it would link to my instance, not lemmy.ml.
But if you view the post I linked above directly on lemmy.ml, the link changed to https://email@example.com instead of https://firstname.lastname@example.org, so that lemmy.ml users can subscribe directly to it from their own instance.
That’s what I’m trying to replicate