Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Cannot distinguish between the user and the community if the usernames are the same #5052

Open
5 tasks done
sorairolake opened this issue Sep 24, 2024 · 3 comments
Open
5 tasks done
Labels
area: federation support federation via activitypub bug Something isn't working

Comments

@sorairolake
Copy link

Requirements

  • Is this a bug report? For questions or discussions use https://lemmy.ml/c/lemmy_support
  • Did you check to see if this issue already exists?
  • Is this only a single bug? Do not put multiple bugs in one issue.
  • Do you agree to follow the rules in our Code of Conduct?
  • Is this a backend issue? Use the lemmy-ui repo for UI / frontend issues.

Summary

I tried to search https://lemmy.ml/c/linux from Misskey to follow this community but couldn't. Unlike this, https://lemmy.ml/c/opensource was able to search successfully. The difference between these is that the former has a user with the same name as the community.

I tried searching !linux@lemmy.ml in https://misskey.io/ and https://mastodon.social/ (using https://lemmy.ml/c/linux, !linux@lemmy.ml and @linux@lemmy.ml), both returned only the user (@linux@lemmy.ml) as a search result, and sometimes the search failed (depending on the syntax).

misskey-dev/misskey#14614 (comment) states:

I don't think there's a clean way for Misskey to resolve this. The preferredUsername in both ActivityPub JSONs of u/linux and c/linux in lemmy.ml are linux. The webfinger for acct:linux@lemmy.ml also doesn't show a clear distinction between the user/person and group/community.

IMO this is Lemmy's bug and they should resolve it.

I think that other ActivityPub implementations such as Mastodon, PeerTube, and Pixelfed, may also be unable to distinguish between the user and the community in such cases.

Steps to Reproduce

  1. Discover a user or a community with the same username
  2. Try searching for an account in other ActivityPub implementations

Technical Details

See above

Version

BE: 0.19.6-beta1

Lemmy Instance URL

lemmy.ml

@sorairolake sorairolake added the bug Something isn't working label Sep 24, 2024
@Nutomic Nutomic added the area: federation support federation via activitypub label Sep 25, 2024
@Nutomic
Copy link
Member

Nutomic commented Sep 25, 2024

This was previously discussed in #2037. Basically Lemmy stores users and communities in different database tables (namespaces), so there is no problem having a user and community with the same name. The only possible solution would be to prevent community creation if a user with that name already exists (and vice versa).

@sorairolake
Copy link
Author

Is there any possibility to provide additional solutions to distinguish between the user and the community even in ActivityPub implementations such as Misskey and Mastodon which cannot distinguish between those?

@informapirata
Copy link

Is there any possibility to provide additional solutions to distinguish between the user and the community even in ActivityPub implementations such as Misskey and Mastodon which cannot distinguish between those?

No.
Unfortunately, the choice of the Lemmy developers was a bit naive, because it did not take into account the serious limitations that today what is considered the "de facto standard" of the Fediverse and which is the most used software has.

However, the problem is that Mastodon is an ergonomically perfect software, but architecturally it is crap... Mastodon, Pleroma and Misskey are not able to distinguish between a normal user and a group user and this is ridiculous!

But if, instead of Mastodon, you used Friendica you would not have this problem and you would only have to search for the complete handle of the Lemmy community (https://lemmy.ml/c/linux), to find it, follow it and manage that user as an Activitypub group....
But not only that: if you also searched for the user @linux@lemmy.ml, you would find both, the user and the community!

This is why you should stop using Mastodon... :-)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: federation support federation via activitypub bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants