-
-
Notifications
You must be signed in to change notification settings - Fork 884
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
Community is gone from instance after changing name by a remote moderator #3075
Comments
https://github.com/Neshura87 @Neshura87 has log of the instance |
Not exactly log but I know what happened pretty much exactly, just a few unknowns. ludrol edited a community title with his remote instance account which I had made mod. Not sure if lemmy-ui or lemmy messed up but the put request for the community switched the 'remote' column in public.community from true to false. Setting the bool to true again fixed the problem immediately. I assume there are some missing sanity checks in the backend or erroneous data sent in the frontend. I'll see if i can find the lemmy log of the incident edit: nevermind, log is lost as I recreated the docker container once in an attempt to debug the problem |
Seems like remote moderators arent well tested yet. To fix it, this line needs to be changed to |
…#3088) * Set insert and update form "local" to None * Extra space to retrigger woodpecker * Resolve code review request #3088 (comment) * Remove extra space after None,
Just an FYI, I know the fix is in. But this doesn't only break the URL but it also breaks federation. The community stops syncing between instances. And the only way to fix it is for a sysadmin of the home instance to apply a fix to the DB. |
Probably a good idea to add a DB check for the next update that changes all communities to local where the url domain is the same as the local instance |
Any chance an automatic DB check to revert this could still make v0.18? If not, could somebody please post an "SQL for Dummies" instruction how to fix it manually? |
…e(false) (LemmyNet#3088) * Set insert and update form "local" to None * Extra space to retrigger woodpecker * Resolve code review request LemmyNet#3088 (comment) * Remove extra space after None,
Would be nice if someone could crosscheck. For finding out if there are any local communities affected by this bug. Replace SELECT COUNT(*)
FROM community c
JOIN instance i ON c.instance_id=i.id
WHERE i.domain='domain.tld' AND not c.local; For updating these rows: UPDATE community c
SET local=TRUE
FROM instance i
WHERE i.id=c.instance_id AND i.domain='domain.tld'; |
Based on the SQl snippets, shall I assume that v0.18 won't include the auto DB check to fix communities? This doesn't seem to be fixed for affected community on enterprise.lemmy.ml (running v0.18-rc5 as I type) |
I created a new issue #3256 to discuss the application of an automatic fix, since a discussion in a closed issue has bad visibility and probably isn't the right place anyway. |
Issue Summary
A summary of the bug.
Steps to Reproduce
Technical details
My account ludrol@szmer.info changed name of !aoblightnovel@bookwormstory.social
and now link https://bookwormstory.social/c/aoblightnovel is 404
and https://bookwormstory.social/c/aoblightnovel@bookwormstory.social has our community
The text was updated successfully, but these errors were encountered: