I also posted this question in another comment thread, but is there no way for an app to say “give me communities only” or “give me the users only” when calling the webfinger lookup thingy?
Comment on If a Lemmy user has the same name as a community, how can I tag the community on Mastodon?
julian@activitypub.space 1 week agoAgreed... I didn't respond right away since I wasn't sure if I was right, but there are two constraints at play here:
- Lemmy wants to allow communities to be named the same as a user
- This is not allowed in webfinger (insomuch that multiple IDs reports should refer to the same entity)
You can fault Mastodon for not handling it, but I think the onus is on Lemmy to adjust their behaviour.
For reference, the same constraint happened with NodeBB. When we started, categories didn't have handles and were not unique with users (so, a category could be named the same as a user). I needed to make the handle unique between both categories and users, for this exact reason.
yo_scottie_oh@lemmy.ml 1 week ago
julian@activitypub.space 1 week ago
Nope, it's just a.single route, no filters or qualifiers I am aware of.
One could go through the returned accounts and see which are users and which are groups, although that's expensive and time consuming to do.
rglullis@communick.news 1 week ago
I sound like a broken record, but none of this would happen if the devs took a good look at RDF before throwing everything into objects/classes and ORMs.
I’m working on something that aims to be compatible with Lemmy’s API, and my models are based on the context definitions first. This means that it becomes impossible to have communities and users with the preferred_username, because they are both actors.