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?
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.
I made an SMTP server that treats email addresses as case sensitive. When it gets mail for [email protected], it refuses to deliver it to [email protected], and it allows users to create [email protected] and [email protected] as two distinct addresses. Within my server, it's not confusing at all. Outside of my server, there be dragons.