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

Editing a community as a mod from a remote instance causes the community to be flagged as non-local and returns a 404 #3017

Closed
4 tasks done
smorks opened this issue Jun 11, 2023 · 3 comments
Labels
area: federation support federation via activitypub bug Something isn't working

Comments

@smorks
Copy link
Contributor

smorks commented Jun 11, 2023

  • Did you check to see if this issue already exists?
  • Is this only a single bug? Do not put multiple bugs in one issue.
  • Is this a question or discussion? Don't use this, use https://lemmy.ml/c/lemmy_support .
  • Is this a UI / front end issue? Use the lemmy-ui repo.

Issue Summary

When editing a community as a remote user, it changes the community.local flag to false, causing the community return a 404. however it will now be accessible at https://[instance]/c/[community]@[instance].

Steps to Reproduce

  1. I tested this with a local community: https://lemmy.ca/c/test
  2. I appointed a moderator from a different instance (https://sh.itjust.works/u/smorks)
  3. I had that moderator edit the community.
  4. The community now returns an error when accessing the original url (https://lemmy.ca/c/test) but accessing it using (https://lemmy.ca/c/[email protected]) works. In the database, the community.local field is now set to false. updating it back to true fixes the 404 on the original url.

edit: you can fix this issue by editing the community with a local mod. i don't believe this works, sorry!

@smorks smorks added the bug Something isn't working label Jun 11, 2023
@Nutomic Nutomic added the area: federation support federation via activitypub label Jun 12, 2023
@ruudschilders
Copy link

ruudschilders commented Jun 13, 2023

I just ran into this issue too on lemmy.world, with a moderator from lemmy.ml , running 0.17.4

@jason-watkins
Copy link
Contributor

jason-watkins commented Jun 14, 2023

Copying here from Matrix for ease of reference until this is fixed. The following **completely untested ** SQL should fix the issue

lemmy=# select id, actor_id from community where name='<your community name>';
lemmy=# update community set local='t' where id=<the correct id from above>;

@Nutomic
Copy link
Member

Nutomic commented Jun 14, 2023

#3088

@Nutomic Nutomic closed this as completed Jun 14, 2023
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

4 participants