20
submitted 9 months ago* (last edited 9 months ago) by EveryMuffinIsNowEncrypted@lemmy.blahaj.zone to c/lemmy@lemmy.ml

Hello.

I'm extremely tired, so it very well could be that this is extremely simple and I'm just not getting it. However, what I would like to know is how to open a post from a community on one instance on another instance.

For example, here's a recent post from !asklemmy@lemmy.ml. I know that to open that community in the instance lemmy.blahaj.zone, I would merely type into the address bar

lemmy.blahaj.zone/c/asklemmy@lemmy.ml

However, how would I open that particular post in that community on the latter instance? Is it even possible?

Cheers.

 

P.S.

I did do some searching on both this community as well as the Reddit Lemmy FAQ page but I didn't find anything. However, I could've missed something. If it's something obvious, I apologize in advance.


Edit: Assuming I understand what people are saying, well, evidently, it seems to be a current limitation of the ActivityPub protocol. Perhaps that will change one day. Hopefully soon. ¯\_(ツ)_/¯

top 24 comments
sorted by: hot top controversial new old
[-] pelespirit@sh.itjust.works 4 points 9 months ago* (last edited 9 months ago)

If it's what I think you're asking, you would go to the instance that you want to open the post on and do a search for that title, with the search type as "posts". The instance you're on has to look it up because everything isn't automatically on another instance. Also, both instances have to be federated to each other. I personally, haven't had good luck by doing the generic address way of posting.

[-] jeena@jemmy.jeena.net 5 points 9 months ago

The parent's text in visual form:

[-] EveryMuffinIsNowEncrypted@lemmy.blahaj.zone 2 points 9 months ago* (last edited 9 months ago)

I agree with @pelespirit@sh.itjust.works; thank you for this. :)

[-] pelespirit@sh.itjust.works 1 points 9 months ago

Thanks for doing that, it probably was confusing the way I described it.

[-] maegul@lemmy.ml 3 points 9 months ago

Yea I think this is the correct answer.

I don’t know for sure, but I think this question has come up before, maybe written up as an issue on GitHub (worth a check).

Essentially, I think it is a missing feature at the moment. And same goes for comments.

The solution would probably be that all content is stored in the DB along with its original address and its current address on the instance it’s being viewed from. I’m betting that wasn’t done from the beginning and so to add it would require a schema update. I’m not sure I see any reason why it’d be too hard to add. Might be a good feature for a community member to add if they’re up to it.

Thanks for explaining all this. Sounds fascinating to me. I do appreciate you going out of your way to do that. :)

[-] maegul@lemmy.ml 3 points 9 months ago

No worries!

I am just guessing here though.

Wow. Seriously, that is a...pretty massive hole in feature-set for a link-sharing platform. And I say that lovingly toward Lemmy.

[-] pelespirit@sh.itjust.works 2 points 9 months ago

When they get the kinks worked out and people spread throughout all of the instances, Lemmy is going to be great for everyone.

I mean, I expect kinks. That's a natural part of the nature of what the fediverse is right now. I just think this is a pretty glaring gap; I hesitate to call it a "basic feature", but I'd say it's close... :/

[-] pelespirit@sh.itjust.works 2 points 9 months ago

Fair point, I agree.

[-] otter@lemmy.ca 3 points 9 months ago* (last edited 9 months ago)

Most apps handle it internally, but if you're on the web browser you can use the Instance Assistant extension to do it for you. It adds a little "open post in home instance" button

Instance Assistant

Nice! Installed!

Thanks. :) Kind of makes me think of a Reddit Enhancement Suite–type app but for ActivityPub. Haha.

[-] freamon@endlesstalk.org 3 points 9 months ago

The short answer is that you have to ask blahaj.zone to resolve it. lemmy.ml has it as post id 11470168, but it'll be different for other instances - whatever the next number was in their database when the post was announced.

You get different answers depending on whether you're logged in or not though.
From endlesstalk.org, I can search for that post in the web-ui: Communities -> paste the post url into Search -> Change the Type from 'communities' to 'posts'
Alternatively, using the API, I can resolve it with
curl --header 'accept: application/json' --header 'authorization: Bearer MY_LOGIN_TOKEN' https://endlesstalk.org/api/v3/resolve_object?q=https://lemmy.ml/post/11470168

I'm not logged into blahaj.zone though, so it won't resolve it. The web-ui only gives me this post as one that mentions the thing I'm searching for, and the API returns 'not found'

I understand. I wasn't sure if it was something that was already possible and I just didn't get it (again, because I'm tired as balls), or if it was a problem with my instance, or hell even a limitation of the ActivityPub protocol itself. If I knew it was the instance, I would have posted for sure there instead. Although judging from others' comments here, it seems the issue really is an ActivityPub limitation.

[-] Die4Ever@programming.dev 2 points 9 months ago* (last edited 9 months ago)

Drop the permaurl/fedilink into your own instance's search box. Note that you have to be logged in when searching for remote content otherwise it'll silently find nothing, probably to avoid abuse of server resources.

Related minor issue https://github.com/LemmyNet/lemmy-ui/issues/2160

And pull request with the fix https://github.com/LemmyNet/lemmy-ui/pull/2344 (give a thumbs up or comment if you want to see this fix accepted)

Basically if the colorful fedilink icon is not there then you can just copy the URL from your address bar cause you're already on the local post. Posts are local to the instance of the poster, not the instance of the community.

Here's a couple of feature requests filed for improving the core issue: (give them thumbs ups)

https://github.com/LemmyNet/lemmy-ui/issues/2318

https://github.com/LemmyNet/lemmy/issues/2987

This was all genuinely very fascinating, but now I'm embarrassed because I don't know what a fedilink is. xD

[-] otl@hachyderm.io 2 points 9 months ago

@EveryMuffinIsNowEncrypted @Die4Ever I think of a "fedilink" as the canonical URL where the post/comment/toot/video/etc. can be found.
From Lemmy server lemmy.sdf.org: https://lemmy.sdf.org/comment/8082033
From hachyderm.io (running Mastodon): https://hachyderm.io/statuses/111886790514615908
Each of those servers loaded your comment from https://lemmy.blahaj.zone/comment/6238380 (this is the fedilink!)

So the fedilink is the link to the original post on the original instance?

[-] Die4Ever@programming.dev 1 points 9 months ago

this colorful icon is the fedilink, the original URL of the post/comment

[-] rikudou 1 points 9 months ago* (last edited 9 months ago)

You can also use https://lemmyverse.link - you can either put the URL on the homepage, or it's not even hard to create it manually - your post (https://lemmy.ml/post/11470168) has the URL https://lemmyverse.link/lemmy.ml/post/11470168 - that way everyone can choose their own instance and be redirected to the post on their own instance.

Oh that's useful! Thanks!

this post was submitted on 05 Feb 2024
20 points (91.7% liked)

Lemmy

11947 readers
30 users here now

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

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

founded 4 years ago
MODERATORS