From mastodon to follow an account or a community on lemmy you use the @name@server format and there is no difference between a community name and a user-name

so i was wondering if anyone tried and checked what happened

  • @[email protected]
    link
    fedilink
    English
    166 days ago

    On Lemmy? Nothing, works fine. On Mastodon? Not sure, maybe someone in a Mastodon community would know.

      • @[email protected]
        link
        fedilink
        English
        55 days ago

        That’s not the question though. The question is what if I make a user called “@[email protected]” (i.e. this community)? That’s probably allowed on Lemmy, but since Mastodon doesn’t have the concept of communities in nearly the same way, what would happen?

        • fmstrat
          link
          fedilink
          English
          3
          edit-2
          5 days ago

          That’s not how Lemmy works. Lemmy uses Actor URLs of https://host.tld/u/user which is referenced via @user@host.tld, and communities are https://host.tld/c/community referenced as !community@host.tld. So there is no overlap.

          @[email protected]

          [email protected]

            • fmstrat
              link
              fedilink
              English
              05 days ago

              I don’t follow… Lemmy and Mastodon both require port 443, so a single hostname of lemmy.ml can’t run both. Lemmy and Mastodon handle users the same way, just Mastodon doesn’t have !communities.

              • @[email protected]
                link
                fedilink
                English
                35 days ago

                I’m talking about a mastodon user referencing a Lemmy community vs a Lemmy user. Mastodon apparently uses the same syntax for both.

                • fmstrat
                  link
                  fedilink
                  English
                  14 days ago

                  Ohhhh. My understanding is initial @ in Mastodon is only required for users, and would default to user over community, while leaving off the initial @ would do community. I have not validated that in the source, though.

  • @[email protected]
    link
    fedilink
    English
    106 days ago

    What should happen: The backend checks if you’re trying to create a community that has the same name as a user, or vice versa, and refuses to do it because that would be confusing, since a lot of ways of referring to an entity on Lemmy use the exact same format for the user and the community.

    What does happen: Have fun with confusing!

    • davel [he/him]
      link
      fedilink
      English
      156 days ago

      Inside the Lemmyverse and its API, it’s not confusing at all. Outside of the Lemmyverse there be dragons.

        • Björn Tantau
          link
          fedilink
          English
          15 days ago

          You monster!

          Now, what happens when one uses different cases in the domain part?

          • @Poach
            link
            English
            35 days ago

            Round robin arbitration.

        • Billegh
          link
          English
          15 days ago

          You joke, but gmail does this with dots in email. There is no difference to gmail between fartmaster@gmail.com and f.a.r.t.m.a.s.t.e[email protected]. Not really any dragons here, but can create confusion if you’re unaware.

          • Björn Tantau
            link
            fedilink
            English
            25 days ago

            Nah, Gmail does the exact opposite of what their server does. Gmail is extra lenient with how an address may look. While their server is extra strict.

            • @[email protected]
              link
              fedilink
              English
              35 days ago

              Correct. Gmail is doing it right, by anticipating how their server’s behavior might confuse people or lead to email going to the wrong mailbox, and making extra complexity to make sure the behavior makes sense. Lemmy is doing it wrong, in this instance.

    • fmstrat
      link
      fedilink
      English
      1
      edit-2
      4 days ago

      What formats are the same? Users are /u and @ while communities are /c and !. No overlap to check for. Mastodon is where the confusion comes in.