]> Untitled Git - lemmy.git/commit
Ensure site can only either be a private instance or federated when creating or editi...
authorScott <97430840+scme0@users.noreply.github.com>
Wed, 21 Jun 2023 20:14:12 +0000 (05:44 +0930)
committerGitHub <noreply@github.com>
Wed, 21 Jun 2023 20:14:12 +0000 (22:14 +0200)
commitda3e3b6d8a6684d58eecef91c675a696005f8330
tree20641569ae60c4620792c002ab7b4528bc347345
parent289052f26178213e50e940648d1f91a6623d772e
Ensure site can only either be a private instance or federated when creating or editing site (#3237)

* Add site visibility validation

* Fix formatting

* linter changes

* Update error message to match existing check

* Remove existing check

---------

Co-authored-by: Scott Merchant <97430840+scottmerchant@users.noreply.github.com>
crates/api_crud/src/site/create.rs
crates/api_crud/src/site/update.rs
crates/utils/src/utils/validation.rs