форум
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
aaryA to Lemmy@lemmy.mlEnglish ·
edit-2
12 hours ago

How to refer to a message in different server?

message-square
message-square
21
link
fedilink
7
message-square

How to refer to a message in different server?

aaryA to Lemmy@lemmy.mlEnglish ·
edit-2
12 hours ago
message-square
21
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.

  • Aary@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    4 hours 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

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

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

    • Aary@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 hours 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
        ·
        3 hours 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…

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.

  • 12 users / day
  • 0 users / week
  • 0 users / month
  • 0 users / 6 months
  • 1 local subscriber
  • 14.6K subscribers
  • 2 Posts
  • 23 Comments
  • Modlog
  • mods:
  • Nutomic@lemmy.ml
  • BE: 0.19.19
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org