this post was submitted on 22 Jun 2026
7 points (100.0% liked)

Lemmy

14617 readers
15 users here now

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

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

founded 6 years ago
MODERATORS
7
How to refer to a message in different server? (xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf)
submitted 19 hours ago* (last edited 19 hours ago) by aary@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf 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
[–] aary@lemmy.ml 1 points 11 hours ago* (last edited 11 hours ago) (1 children)

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 special syntax and special parsing)

[–] aary@lemmy.ml 1 points 11 hours 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...