]> Untitled Git - lemmy.git/commit
Add separate Post check for is_valid_body_field (#3263)
authorNeshura <neshura@protonmail.ch>
Mon, 26 Jun 2023 08:47:01 +0000 (10:47 +0200)
committerGitHub <noreply@github.com>
Mon, 26 Jun 2023 08:47:01 +0000 (10:47 +0200)
commit203e35899e12e8696d0c871b5c12b27a5751b4a2
tree89aa56809507fe74230d5928438975c7e5d08821
parent206789af67e4b75ec45b3434641ce16ab899c238
Add separate Post check for is_valid_body_field (#3263)

* Add separate Post check for is_valid_body_field

* Modify is_valid_body_check for posts only

* Fix check var reinit in validation.rs

* Extra empty line to rerun woodpecker with changes

* Change Option to bool, add false to non-post calls

* Woodpecker trick.. again

* Probable rust_fmt fail fixed

* cargo_clippy changes

* Missing space between = and if

* Remove ; after body length checks
13 files changed:
crates/api/src/community/ban.rs
crates/api/src/local_user/ban_person.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/utils/src/utils/validation.rs