this post was submitted on 16 Jun 2023
4 points (100.0% liked)

Lemmy

12524 readers
1 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.

founded 5 years ago
MODERATORS
 

Let's say I'm visiting lemmy.ml/post/1234, and I'd like to view the same post but under lemmy.world. is there a pattern or something I can do to do this?

you are viewing a single comment's thread
view the rest of the comments
[–] tubbadu@lemmy.world 2 points 2 years ago (1 children)

I'd like to write a browser addon that displays a button in each lemmy instance that when clicked redirects you to the same post in your home instance, so I'm searching for a way to do this unequivocally. there could be two posts with the same title and hypothetically also with the same body, so there must be another way...

[–] Barbarian@sh.itjust.works 1 points 2 years ago (1 children)

That sounds like a very difficult circle to square.

If you notice this icon:

That button takes you to the "original" version, with the ID of that comment/post on the home instance of whoever posted it. I'd start by looking into how that button works on the github page. I don't know typescript, so I don't know where to look there, but it's gotta be coded somewhere

[–] tubbadu@lemmy.world 2 points 2 years ago

this could be a good point to start from, thanks!