I’m incorporating this as a client-side feature in 1.4.30: https://github.com/LemmyNet/lemmy/issues/2987
API support is irrelevant as the tools needed to make this work already exist, and are already in use (e.g. user and community links and the localization of remote post/comment links).
I’ve had user and community links working that way for many releases now, and in this release, I’m extending it to posts and comments.
User/Community links already auto resolve and bring up modals with actions for them. Currently, the new post/comment universal link handling is just a fancy button link that supports an extra couple of formats, but I plan to add a bit of extra functionality to them (though maybe not in the initial release).
When you go to a “foreign” post or comment in Tesseract, there is a button to load it on your home instance. I’ve not made that automatic because it’s often useful to view posts on other instances (e.g. your instance has banned the creator, your instance doesn’t federate with the instance of the post, etc).
I’ve also added icons to the badge buttons in this release.
Questions
- Now that there are icons on the badge buttons, should the colors be unified? If so, which color?
- Should post/comment links open a post view (basically an embedded version of the post page) in a modal?
- Should clicking these links automatically resolve the post/comment on your home instance, or leave it a manual process where you see it fetched remotely and can then load it on your home instance if desired?
Lgtm! And thanks 😁