How to refer to a message in different server? (xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf)
submitted 1 month ago* (last edited 1 month ago) by to c/lemmy@lemmy.ml
 

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://xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf/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.

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 1 month ago* (last edited 1 month ago) (2 children)

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](/c/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

  • source
  • parent
  • hideshow 4 child comments
  • [–] 1 point 1 month ago* (1 child)

    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)

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 1 month ago
    https://localserver.tld/applicationname/objtype/NNNNNID/=ap_id@remoteserver.tld
    https://localserver.tld/applicationname/objtype/NNNNNID/[!conf@remoteserver.tld](/c/conf@remoteserver.tld)
    https://localserver.tld/applicationname/objtype/NNNNNID/user@remoteserver.tld
    

    and distinguish them with regular expressions at reverse proxy...

  • source
  • parent