what happens when user and community have the same name
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
They would be identified by their instance. You can't have two identical usernames in the same instance. So you won't have [email protected] twice. Buy you could have [email protected] and [email protected], for example.
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?
That's not how Lemmy works. Lemmy uses Actor URLs of https://host.tld/u/user which is referenced via @[email protected], and communities are https://host.tld/c/community referenced as [email protected]. So there is no overlap.
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.
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.