this post was submitted on 17 Aug 2023
40 points (100.0% liked)
Programming.dev Meta
59 readers
3 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
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