RetroFed Forum
Your home away from modern life.
How to refer to a message in different server?
Post Reply
AuthorMessage
aary xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf aary@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf
Joined: 2026-06-11
(edited) Quote

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.

9   Original
Shadow lemmy.ca Shadow@lemmy.ca
Joined: 2023-06-22
#2 · Quote Reply

Use https://lemmyverse.link/

2
aary xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf aary@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf
Joined: 2026-06-11
#3 · Quote Reply

Use https://lemmyverse.link/

it give the resulting link as
https://lemmyverse.link/xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf/post/15
so the lemmyverse.link website is the single point of failure. It goes against the idea of federation.

2
Shadow lemmy.ca Shadow@lemmy.ca
Joined: 2023-06-22
#4 · Quote Reply

it give the resulting link as https://lemmyverse.link/xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf/post/15 so the lemmyverse.link website is the single point of failure. It goes against the idea of federation.

It's just a convenience service. Your original url is right there in the path if it were to go down, and it's open source if you want to run your own.

There's no other way currently to do it

3
whatiswrongwithyou lemmy.ml whatiswrongwithyou@lemmy.ml
Joined: 2026-05-07
#5 · Quote Reply

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

1
aary xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf aary@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf
Joined: 2026-06-11
#6 · Quote Reply

It's just a convenience service. Your original url is right there in the path if it were to go down, and it's open source if you want to run your own. There's no other way currently to do it

«Your original url is right there in the path if it were to go down»
But how it's supposed to help one, to see the original URL?
It will help only if the content is archived in some way.
If remote lemmy server will go down. Then content will became unavailable, even If I install a local copy of that redirecting engine.

1
Aary lemmy.ml aary@lemmy.ml
Joined: 2026-05-17
#7 · Quote Reply

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

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

2
whatiswrongwithyou lemmy.ml whatiswrongwithyou@lemmy.ml
Joined: 2026-05-07
#8 · Quote Reply

Business cards with your website on em the looooong way

1
Shadow lemmy.ca Shadow@lemmy.ca
Joined: 2023-06-22
#9 · (edited) Quote Reply

«Your original url is right there in the path if it were to go down» But how it's supposed to help one, to see the original URL? It will help only if the content is archived in some way. If remote lemmy server will go down. Then content will became unavailable, even If I install a local copy of that redirecting engine.

The point is that it redirects you to the post on your personal interest.

You can also paste that into the search of any lemmy instance to find it, if they mirrored it

1
whatiswrongwithyou lemmy.ml whatiswrongwithyou@lemmy.ml
Joined: 2026-05-07
#10 · Quote Reply

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

2
aary xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf aary@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf
Joined: 2026-06-11
#11 · (edited) Quote Reply

The point is that it redirects you to the post on your personal interest. You can also paste that into the search of any lemmy instance to find it, if they mirrored it

You can also paste that into the search of any lemmy instance to find it, if they mirrored it

Yes, this works. But I don't understand how. The question is - will it work, if remote instance went down?

1
Shadow lemmy.ca Shadow@lemmy.ca
Joined: 2023-06-22
#12 · Quote Reply

You can also paste that into the search of any lemmy instance to find it, if they mirrored it Yes, this works. But I don't understand how. The question is - will it work, if remote instance went down?

Once a user on the remote instance subscribes, all posts are replicated over as they're made. Not at the the time of request.

1
aary xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf aary@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf
Joined: 2026-06-11
#13 · Quote Reply

Once a user on the remote instance subscribes, all posts are replicated over as they're made. Not at the the time of request.

The existence of local replica doesn't prove, that searching by remote URL will work (with remote server down).

1
mathemachristian[he] lemmy.ml mathemachristian@lemmy.ml
Joined: 2024-04-08
#14 · Quote Reply

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.

2
aary xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf aary@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf
Joined: 2026-06-11
#15 · Quote Reply

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

1
Aary lemmy.ml aary@lemmy.ml
Joined: 2026-05-17
#16 · Quote Reply

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.

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.

1
Aary lemmy.ml aary@lemmy.ml
Joined: 2026-05-17
#17 · (edited) Quote Reply

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.

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

1
aary xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf aary@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf
Joined: 2026-06-11
#18 · Quote Reply

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

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.

1
Aary lemmy.ml aary@lemmy.ml
Joined: 2026-05-17
#19 · (edited) Quote Reply

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....

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)

1
Aary lemmy.ml aary@lemmy.ml
Joined: 2026-05-17
#20 · Quote Reply

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://...
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...

1
mathemachristian[he] lemmy.ml mathemachristian@lemmy.ml
Joined: 2024-04-08
#21 · Quote Reply

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....

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

1
mathemachristian[he] lemmy.ml mathemachristian@lemmy.ml
Joined: 2024-04-08
#22 · Quote Reply

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.

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.

2
Edie [it/it/its/its/itself, she/her/her/hers/herself] lemmy.ml Edie@lemmy.ml
Joined: 2024-07-10
#23 · Quote Reply

You can also paste that into the search of any lemmy instance to find it, if they mirrored it Yes, this works. But I don't understand how. The question is - will it work, if remote instance went down?

Yes

https://lemmy.ml/search?q=https%3A%2F%2Flemm.ee%2Fpost%2F68175317&type=All&listingType=All&page=1&sort=TopAll&titleOnly=false

2
Post Reply
Back to top