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?
Is it possible to also handle lemmyverse.link links? They look like this https://lemmyverse.link/dubvee.org/post/2672286, which should be fairly obvious what to replace it with, as you just need to remove the
lemmyverse.link/
part.Final check before I wrap this feature up and move on. I landed on one of your posts, and this is what an inline post link will look like in the wild:
Any issues with that? Yay? Nay?
Also, I’ve been meaning to reply on the Threadivore thing. Will go do that now while I’m thinking of it.
Lgtm! And thanks 😁
Implemented in 3e1feffc
I think the next step/feature is going to be opening the post/comment links in a modal so you can read them, in context, without leaving the post that linked to them.
Should be, assuming it’s not going to throw a wrench into the regexes. I’m already supporting lemmyverse links in certain places (I think the form that lets you directly ban/unban a user supports them). I’ve been meaning to expand that support just haven’t gotten around to it.
I personally like the color-coding, so I hope it remains
Noted. I like the color coding when it was just blue/grey, but when there’s orange, blue, and grey on a crosspost, they seem a little much.
Maybe I can do less intense colors for post/comment links and keep them separate colors but tone them down.
Maybe just go for less hot and cold color combinations? Just shades of blue?
Light blue, Blue, Gray, Teal
Light blue, Blue, Gray, Teal
Doesn’t look bad. I went with ‘emerald’ and teal since light blue wasn’t very distinguished from regular blue (when account for dark/light themes).
Good compromise! 🤜
Re: Should colors be unified / which color?
I kind of like standardizing them to the gray button. Thoughts?