this post was submitted on 17 Aug 2023
47 points (100.0% liked)
Programming.dev Meta
2466 readers
2 users here now
Welcome to the Programming.Dev meta community!
This is a community for discussing things about programming.dev itself. Things like announcements, site help posts, site questions, etc. are all welcome here.
Links
Credits
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Yeah no idea how that would be connected. I know theres an extension that does it so I might need to look at the source for that
I believe there is an API to convert such a link, but detecting that a link is going to a Lemmy instance might be difficult (or non-elegant).
Should be able to just compare against the list of known instances. It'll miss the ones that aren't connected yet, but that should fix itself once someone subscribes to a remote community on the missing instance.
Yeah, that's what I meant by non-elegant. I think the way Lemmy assigns IDs to posts and comments should be re-thought. Dictionary lookup is a solution, but not a good one.
Hmm, yeah, I see what you mean. Wasn't thinking about having to convert the IDs. Plus the actual local copy of the post needs to be available, not just a connection to the remote instance.
I believe there is an API to create a local copy, but I'm not sure