]> Untitled Git - lemmy.git/commit
Adding check to description and body length fields. (#2805)
authorDessalines <dessalines@users.noreply.github.com>
Sat, 15 Apr 2023 14:45:11 +0000 (10:45 -0400)
committerGitHub <noreply@github.com>
Sat, 15 Apr 2023 14:45:11 +0000 (10:45 -0400)
commit38d4429ae7cef27089263cc39dc0fa9647263d6d
tree14474899a20ce154dd69c520e758403811c5c0fa
parente7a2080f3f54de645024d0cf5d84bd32a5c5def9
Adding check to description and body length fields. (#2805)

* Adding check to description and body length fields.

- Also making the checks return `LemmyError`
- Fixes #1747

* Address PR comments.

* PR comments 2
15 files changed:
crates/api/src/community/ban.rs
crates/api/src/local_user/ban_person.rs
crates/api/src/local_user/save_settings.rs
crates/api_crud/src/comment/create.rs
crates/api_crud/src/comment/update.rs
crates/api_crud/src/community/create.rs
crates/api_crud/src/community/update.rs
crates/api_crud/src/post/create.rs
crates/api_crud/src/post/update.rs
crates/api_crud/src/private_message/create.rs
crates/api_crud/src/private_message/update.rs
crates/api_crud/src/site/create.rs
crates/api_crud/src/site/update.rs
crates/api_crud/src/user/create.rs
crates/utils/src/utils/validation.rs