lemmy icon indicating copy to clipboard operation
lemmy copied to clipboard

Prevent making an instance private if federation is enabled.

Open wyattjsmith1 opened this issue 1 year ago • 1 comments

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?

wyattjsmith1 avatar Jun 13 '23 18:06 wyattjsmith1

You need to add the string as a key in lemmy-translations, and handle this message in lemmy-ui.

Nutomic avatar Jun 13 '23 20:06 Nutomic