I had noticed that some cross-posted posts showed a different style of link for those cross-posts: some show it as a link under the title and header of the post but above the body, and some show the link (usually) in the body of the post. In addition, the cross-post links above the body are relative links (open in my home instance), but the ones inside the body are hard links (open in the source community’s home instance). Lastly, the links inside the body show only on one of the cross-posts, but the ones outside the body show on both cross-posts.

At first I thought that the second style, the one in the body that’s hard-linked and only on one of the posts, was due to the poster manually adding that link. However, over time I realized that that was not the case because it looked too consistent across different users.

I searched for a mention of this in this community and found this post about it: https://lemmy.zip/post/8016049 - unfortunately, there’s either something I’m still missing or that the explanation is missing.

Here’s an example post I happened to find that is linking to an external article’s URL, but has both styles of cross-post link. It’s a post linking to an article URL too: https://sh.itjust.works/post/64304718

Does anyone know how or why the two different styles of cross-post link get created?

  • Die4EverA
    link
    fedilink
    English
    arrow-up
    2
    ·
    15 hours ago

    Both links probably go to the same place. The difference being one link is directly to the post (which is hosted on the OP’s home instance, not the community’s) and the other link is in your own instance

    • Cricket@lemmy.zip@lemmy.zipOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      14 hours ago

      Thanks, but unless I’m misunderstanding what you’re saying, I don’t think that’s the case. The one on top seems to be a relative link (meaning it links to anyone’s local instance) and the one on the bottom is a hard link. It would be fine if it was just that, but the problem is that most cross-posts don’t show both, and also the second one only shows on the new cross-post and not on the original post. The whole thing is unpredictable and confusing, and I’m a techie. I can only imagine how much it confuses non-techies.

      • Die4EverA
        link
        fedilink
        English
        arrow-up
        4
        ·
        14 hours ago

        the sh.itjust.works link is just the body text of the post, it’s not really part of Lemmy’s UI

        Lemmy does fill it in automatically when you start a crosspost and there is body text, but it’s just plain text

        it’s useful if your instance isn’t able to find the crosspost automatically, but the automatic links are easier when they do exist like in your screenshot

        The whole thing is unpredictable and confusing

        I’m not gonna disagree on this lol

        • Cricket@lemmy.zip@lemmy.zipOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          13 hours ago

          Thanks. I think what you mentioned about Lemmy being able to find the cross-post automatically may be close to the explanation for why this happens.

          I would just like to know what to expect and why. I cross-posted something a couple of days ago and it did not show or give me the option to show the hard-link in the body: https://lemmy.ca/post/68531648

          • Die4EverA
            link
            fedilink
            English
            arrow-up
            3
            ·
            13 hours ago

            That’s because the original post did not have body text only a link

      • imaqtpie@sh.itjust.works
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        14 hours ago

        In my experience, every crosspost should have the link on the top. That’s the actual crosspost link. The one in the body of the text is kinda a bonus one that can be deleted according to the poster’s preference. But you’re right, the one in the body is also a hard link (goes to home instance of post) while the one in the top is a relative link (goes to your home instance). So I guess if your instance doesn’t federate the community that the crosspost was originally from, then the top link might not show up? I don’t remember encountering that but I guess I wouldn’t necessarily have noticed.

        Can you provide an example of a crosspost that doesn’t show the link in the top part?

        • Cricket@lemmy.zip@lemmy.zipOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          13 hours ago

          Can you provide an example of a crosspost that doesn’t show the link in the top part?

          Thanks for your response and I’m glad you asked this. Yes, I can: https://mander.xyz/post/55967082

          That’s the thing, I’ve usually seen one style or the other. The post in the screenshot (linked in the OP) is the first time I’ve seen both. Notice if you follow the cross-post link on the one I linked on this comment, it doesn’t have any cross-post link back.

          I’m just trying to figure out the pattern here, so I know what to expect and why.

          • Die4EverA
            link
            fedilink
            English
            arrow-up
            2
            ·
            13 hours ago

            That post does not have a link, the URL is how Lemmy connects the posts together, it just finds posts that are pointing to the same URL

            • Cricket@lemmy.zip@lemmy.zipOP
              link
              fedilink
              English
              arrow-up
              1
              ·
              12 hours ago

              Thank you. So you’re saying that the cross-post link that shows at the top, under the title and header, is cross-referenced by the destination article URL. That makes sense. But how about the hard-link in the body? What creates that, and under what circumstances? Going by what you said, I would think that it would be generated if someone cross-posted a post that did not link to an external URL, but then then that wouldn’t explain the one I linked in the OP, which has an article URL but has both styles of cross-post links.

              • Die4EverA
                link
                fedilink
                English
                arrow-up
                2
                ·
                12 hours ago

                the hard link in the body text is generated when there is body text in the original post

                • Cricket@lemmy.zip@lemmy.zipOP
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  12 hours ago

                  But the original post in the screenshot in the OP has no body text and yet has the hard-link in the body? Thanks for trying to help me understand, but I’m still not seeing the pattern.

                  • Die4EverA
                    link
                    fedilink
                    English
                    arrow-up
                    2
                    ·
                    12 hours ago

                    It was edited in or written manually, the user can do it by hand if they wish

                    unless they’re using a weird frontend, it wouldn’t do that