LemmyNet/lemmy

Option to disable federation of nsfw instances

dullbananas opened this issue · 2 comments

Requirements

  • Is this a feature request? 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 feature request? Do not put multiple feature requests in one issue.
  • Is this a backend issue? Use the lemmy-ui repo for UI / frontend issues.
  • Do you agree to follow the rules in our Code of Conduct?

Is your proposal related to a problem?

Instance owners might not want to cooperate in providing access to porn or waste server resources for it.

Describe the solution you'd like.

Unless an option is manually enabled, don't federate with instances that have content_warning set.

Describe alternatives you've considered.

None

Additional context

No response

It should be enough to throw an error here if the site has a content warning. Then it wont be possible to fetch any communities from nsfw instances.

I'm guessing we can't take advantage of the sensitive field for communities, since NSFW instances don't have all their communities marked that way.