Comment on Programming.Dev Feature Requests
canpolat@programming.dev 1 year ago
This is great. I think “instance post/comment links” would be a great addition to Lemmy core in general, but don’t know how easy it would be to implement. What I have in mind is: when someone provides a link to a post/comment in another instance, it would be converted to a link the person is logged in from. I think it would be OK to leave the link as is but add an icon next to it that goes to the correct URL for that instance.
Ategon@programming.dev 1 year ago
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
canpolat@programming.dev 1 year ago
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).
cacheson@kbin.social 1 year ago
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.
canpolat@programming.dev 1 year ago
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.