Converting Piefed links

If I find a link to a conversation on another Lemmy instance, I can just throw the URL of that into the search on my own instance and I'll get directed to a link that works on my instance.

It seems, however, that if the conversation is hosted in a piefed instance instead of lemmy instance, such a conversion using the search tool is not possible.

Could that feature please be added? There are anyways sometimes links to conversations on Piefed instances, and it's not really visible for a random Lemmy user that it's on a different type of platform.

21 points · 8 comments · view on lemmy.world

8 Comments

BlueEther@no.lastname.nz · 5 pts · 363d (6 replies)

I was sure that I had done just that, so just tested:

Tuuktuuk@sopuli.xyz · 2 pts · 363d (5 replies)

I cannot get that to work. I tried this link: https://piefed.europe.pub/post/35873 . And no. Nothing.

Die4Ever@retrolemmy.com · 6 pts · 363d (4 replies)

You're using the wrong URL for searching

it's https://lemmy.dbzer0.com/post/53225502

Lemmy will fulfill the search requests on behalf of other servers so that normally works, but it seems PieFed does not do that so it's a bit more strict

rimu@piefed.social · 5 pts · 363d (2 replies)

Lemmy will fulfill the search requests on behalf of other servers

Yep so does PieFed but Lemmy doesn't accept it for some reason.

nutomic@lemmy.ml · 2 pts · 361d (1 reply)

curl -H 'Accept: application/activity+json' https://piefed.europe.pub/post/35873 | jq

This directly sends the object json for https://lemmy.dbzer0.com/post/53225502 which fails domain validation. Instead https://piefed.europe.pub/post/35873 needs to send a redirect to https://lemmy.dbzer0.com/post/53225502

rimu@piefed.social · 4 pts · 361d

I'll try returning a 301. Thanks!

Tuuktuuk@sopuli.xyz · 1 pts · 362d

Thank you!

Die4Ever@retrolemmy.com · 4 pts · 363d

Keep in mind, Lemmy requires you to be logged in for it to pull from remote servers