this post was submitted on 15 Jan 2023
7 points (100.0% liked)

Lemmy Support

157 readers
1 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

When I follow a community remotely, its handle always mimicks that of a user. E.g, asklemmy is @asklemmy@lemmy.ml

Does this imply that communities can reserve usernames? If not, how does Lemmy distinguish between users and communities remotely?

you are viewing a single comment's thread
view the rest of the comments
[–] 0x1C3B00DA@lemmy.ml 4 points 2 years ago

I'm not a lemmy contributor so everything i'm saying here is conjecture.

The problem is when any software does a webfinger request to get the Actor (which could be a user or community) they send a request that looks like GET lemmy.ml/.well-known/webfinger?acct=community@example.tldand lemmy's response may contain multiple actors but mastodon expects only one actor. Lemmy handles this by fetching both actors in the webfinger response and checking their type, which will be User or Group (which is what lemmy calls communities).

Note that the webfinger request doesn't include the leading @ or ! character because those character are just UI affordances to linkify the community. The !community@domain.tld format isn't a part of any standard and is never exposed to other software.