]> Untitled Git - lemmy.git/commit
Cleaning optional post bodies. Fixes #2039 (#2043)
authorDessalines <dessalines@users.noreply.github.com>
Thu, 20 Jan 2022 14:04:54 +0000 (09:04 -0500)
committerGitHub <noreply@github.com>
Thu, 20 Jan 2022 14:04:54 +0000 (14:04 +0000)
commit19ccaf767c5d8a25cc6535a8dcd124fd87425c8b
treeeefd3870a84fa8efcb365f27c71345e8cd5cb2be
parenta212f6b78053e3c3d225bb5921c8166f1fcdb4a6
Cleaning optional post bodies. Fixes #2039 (#2043)

* Cleaning optional post bodies. Fixes #2039

* Only trim once.

* Using .map() instead.
crates/api_crud/src/post/create.rs
crates/api_crud/src/post/update.rs
crates/utils/src/utils.rs