lemmy
lemmy copied to clipboard
Prevent making an instance private if federation is enabled.
Related to https://github.com/LemmyNet/lemmy/issues/3073.
Issue linked above. This commit will resolve the immediate issue by checking to see if the user is setting the instance to private, and returning an error if the instance is currently set to federated.
Note: Is there anything else I need to do with the error? I feel like this is just raising some snake_case string. Does this need to be handled somewhere to expose it to the user?
You need to add the string as a key in lemmy-translations, and handle this message in lemmy-ui.