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/lemmy@lemmy.ml/1418036 for this current post

  • Yote.zip@pawb.socialOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    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

    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

    Edit: I primarily just find it confusing to link a post to someone else. If I copy paste the URL to them, they will be taken to my home instance and be unable to comment/vote/etc. If I want to link them the original instance’s post, I need to go search for it manually before I can share it (and then they still won’t be able to comment/vote). I feel like there has to be a way to give someone a predetermined link that they can click, and then they will visit the post while staying inside their home instance. It might be a little slow or need a loading screen, but that’s a given.

    For the post you mentioned above, I don’t see why it wouldn’t be possible to share a link like: /post/pawb.social/117202 and have it be able to do the above steps, similar to linking @yote_zip@pawb.social, which is a unique identifier

    • Edo78
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      first things first can i use my timezone as an excuse for forgetting the uuids?

      The whole link from an instance you are not logged in is a PITA. I don’t get if I miss some magic URL but right now sharing something requires a search in your instance (as we described) and it’s not a user friendly UX Maybe there is some API that search/import something from other instances.

      Unless I miss something @username@instance isn’t really linked from anywhere but your instance create a local link when you search for it (or when is somehow imported)

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

        yeah that about sums it up. I don’t know if the technology already exists, or if it would be super annoying to do, but I feel like it should theoretically be possible at some point.

        I agree the UX is not excellent. I’ve wanted to link a comment/post to someone a few times but I didn’t want to hijack them into pawb.social and give them whiplash, so I always search for the comment in the original instance first before I link it. It takes a long time compared to just typing a short link that the webui/apps can translate into a magic local link that will auto-fetch when clicked.

        • Edo78
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          I’m not sure that giving the url to the original post is somehow better than giving the url to the same content as seen in another instance