Hello!

Is there a way to deterministically find an arbitrary post/comment on another instance? e.g. if I click on Post A on Instance A and I want to see what Post A looks like on Server B, how would I link there?

I assume there’s some sort of ID in the backend so that all the servers know which posts match to each other, but is that exposed in the frontend somehow?

Mainly thinking of a way to utilize this in order to have a userscript that can send you back to your home instance if you get linked to a foreign instance’s post.

E.g., maybe I could do something like https://myhomeinstance.net/post/[email protected]/1418036 for this current post

  • Yote.zip@pawb.socialOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Yep, it makes sense that you need to search it before it will get pulled in, but I think it should technically be possible to search and pull that post on the fly when you enter a URL that you don’t have yet. Maybe the Lemmy internals are really not set up for this but I would think it’s possible to:

    • pass another instance and post ID into your home instance (concatenated, I think this is a unique identifier)
    • your home instance checks to see if that instance+postID already exists locally
    • if it finds it, it serves it
    • if it doesn’t find it, home instance grabs it first, then serves it
    • home instance serves you the post

    It’s probably not as efficient as a wholesale pub/sub method that I assume the fediverse runs on but it would be a feature that could be used.

    UUIDs could also be used if there’s a problem involving unique identifiers without coordination