criticalbasics
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
aary@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf to Lemmy@lemmy.mlEnglish ·
edit-2
4 months ago

How to refer to a message in different server?

message-square
message-square
14
link
fedilink
9
message-square

How to refer to a message in different server?

aary@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf to Lemmy@lemmy.mlEnglish ·
edit-2
4 months ago
message-square
14
link
fedilink

I saw that messages have different identifiers on different servers. What should I write in my text to make the hyperlink to work on all servers?

https://лемми.опенсорс.рус/post/15
https://lemmy.ml/post/49064481

15 ≠ 49064481

The site https://lemmy.ml/ is unreachable from my computer because of government politics. I want to refer to the copy of message, which is downloaded into my instance. But it have a new ID in my DB.

alert-triangle
You must log in or register to comment.
  • whatiswrongwithyou@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 months ago

    It’s 4:02 utc, do you know what your smart fridge is up to?

  • mathemachristian[he]@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 months ago

    I believe that the original id is stored somewhere as well since there is i fediverse icon that takes one to the original. You can probably use that id when searching your db.

    • Aary@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 months ago

      I created this topic on my own instance. It knows original ID, but doesn’t know ID-s in all other servers in federation.

      I want to write a link in such a way, that lemmy substitute it with the reference to the local copy of message on lemmy.ml server.

      But now lemmy just shows an original link to my server.

      • mathemachristian[he]@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        4 months ago

        ooh like you can link it and people can click a link across the fediverse while remaining on their home instance. I would really like that as well.

    • Aary@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      4 months ago

      I expected some special syntax like post:id!community@domain

      Or ap_id?post/15@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf

      Here ap_id is the name of part of URI, which maps to
      https://lemmy.ml/post/ap_id
      and performs all the magic, which lemmyverse.link does

      Or https://lemmy.ml/post/49064481?15@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf
      if developers will integrate it into lemmy itself

      ?=post/15@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf - any ap_id

      ?!community@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf - any community
      ?usernick@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf - any user
      but the last two options are not necessary

      • Aary@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        4 months ago

        in another software it’s possible to use:
        p?ap_id@server
        c?conf@server
        u?user@server
        where this local links will be added to URI ending with trailing /

        i.e. https://engine.tld/application/objtype/NNNNNID/
        will be completed with
        https://localserver.tld/applicationname/objtype/NNNNNID/p?ap_id@remoteserver.tld
        https://localserver.tld/applicationname/objtype/NNNNNID/c?conf@remoteserver.tld
        https://localserver.tld/applicationname/objtype/NNNNNID/u?user@remoteserver.tld

        This way the local links will allow to setup redirects to any type of objects.
        (and without the special syntax and special parsing)

        • Aary@lemmy.ml
          link
          fedilink
          English
          arrow-up
          1
          ·
          4 months ago
          https://localserver.tld/applicationname/objtype/NNNNNID/=ap_id@remoteserver.tld
          https://localserver.tld/applicationname/objtype/NNNNNID/!conf@remoteserver.tld
          https://localserver.tld/applicationname/objtype/NNNNNID/user@remoteserver.tld
          

          and distinguish them with regular expressions at reverse proxy…

      • mathemachristian[he]@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        4 months ago

        I don’t believe those exist, it would be cool though

  • aary@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acfOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 months ago

    Проверяем:
    https://лемми.опенсорс.рус/post/15

  • whatiswrongwithyou@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 months ago

    Bro do not even try to set an mx record they already know your shits all dick pills and unsecured loans.

    I’m laughin now but the tables are gonna be turned when that thing renews at .10 cents a year.

    Comin in with the Saturn tld

    I better lay off, you just know his homies from dprk are gonna come after me.

  • whatiswrongwithyou@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 months ago

    Business cards with your website on em the looooong way

  • whatiswrongwithyou@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 months ago

    My man is just checking to see if you’re rfc952 complaint.

    Only hostname I ever seen with a glottal stop

    You know ai out here registering domains bc it tried to put an em dash

    • Aary@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      4 months ago

      I enter xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf into the field of https://lemmyverse.link/ when it asks my home. But the site doesn’t accept that perfectly RFC952 compliant name

      • aary@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acfOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        4 months ago

        An additional problem - the site https://lemmyverse.link/ is available only partially (requires VPN to work).

        So my new idea is to deploy
        https://github.com/RikudouSage/lemmyverse.link
        into my website locally, and give 2 links - the relative (via local redirector) and the direct one (as a fallback).

        the relative link on forein server will became broken, until they also install such redirector into the same path.

        After that the link will always lead to local server and redirect to preferred server of user.

Lemmy@lemmy.ml

lemmy@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !lemmy@lemmy.ml

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

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

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 3 users / week
  • 56 users / month
  • 282 users / 6 months
  • 1 local subscriber
  • 14.7K subscribers
  • 508 Posts
  • 3.05K Comments
  • Modlog
  • mods:
  • Nutomic@lemmy.ml
  • BE: 0.19.20
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org