How do I *properly* link to a post?

(deleted-account)@lemmy.world to Lemmy.World Announcements@lemmy.world – 20 points –

So I know about /c/community@example.host for communities and /u/user@example.host for users, but how do I link to individual posts in a way that won't be a hassle for people in other instances?

16

So we've figured out what the rainbow and regular link icons do. But that doesn't answer OP's question.

I've tried linking with just the /post/<ID>, linking with /post<ID>@<instance>, and no luck so far. This must be possible somehow!

it ought to be something simple like /p/<ID>

Problem is posts have a different ID on each instance they federate to. It's a bit of a bugger.

It seems dumb to me that the fediverse doesn't use UUIDs

Yeah I wonder if the logic is that since instances don't know about each other (until, of course, they do) it would be possible to have duplicate IDs betwixt them so would be inherently unreliable. Idk, hopefully all of this gets sorted out by someone way smarter than me.

UUIDs are a computer science concept where you use some math and some black magic to guarantee that you have generated a unique identifier, even in an environment with federation. This concept predates the fediverse since this is needed for lots of different use-cases. Basically anything with horizontal scaling, orchestration, or p2p needs something like this in order to prevent collisions.

I think that's what the fediverse icon does (the rainbow hexagonal one) so for your post for example it would be https://lemmy.world/post/94456

If I click on the fediverse icon on your post I get carried to lemmy.blahaj.zone though. I wanted to link it inside the users' current instance like /c/ and /u/ do.

Next to that fediverse icon is a regular hyperlink icon, that should take you to where you wanna go, but on your own instance.

As I understand it, the fediverse icon links to the home instance for the community the post was made on. I don't think there's currently a mechanism to link a post in a way that consistently resolves to the user's home server's version so they can vote and be logged in while viewing it.

I don't even see that icon on posts (desktop, web), only on comments. So now I'm even more confused! :D

Update to my own confusion:

  1. You see the rainbow icon on posts that aren't from your home instance. This icon takes you to the full original URL of that post on the remote instance.

  2. The regular chain link icon on comments does indeed give you a link to a comment via your home instance. But that's no good if you're trying to link it agnostically for everyone else.