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

  1. Now that there are icons on the badge buttons, should the colors be unified? If so, which color?
  2. Should post/comment links open a post view (basically an embedded version of the post page) in a modal?
  3. 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?
    • Admiral Patrick@dubvee.orgOPM
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      2 days ago

      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.

    • Admiral Patrick@dubvee.orgOPM
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      3 days ago

      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.

    • Admiral Patrick@dubvee.orgOPM
      link
      fedilink
      English
      arrow-up
      3
      ·
      3 days ago

      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.

    • Admiral Patrick@dubvee.orgOPM
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 days ago

      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.

      • db0@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        3 days ago

        Maybe just go for less hot and cold color combinations? Just shades of blue?

        Light blue, Blue, Gray, Teal

        • Admiral Patrick@dubvee.orgOPM
          link
          fedilink
          English
          arrow-up
          3
          ·
          edit-2
          3 days ago

          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).