Merge branch 'main' into add_federation_worker_index

This commit is contained in:
Dessalines 2023-09-18 19:19:24 -04:00 committed by GitHub
commit c25734e4ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,7 @@ pub async fn register(
check_slurs_opt(&data.answer, &slur_regex)?; check_slurs_opt(&data.answer, &slur_regex)?;
if sanitize_html_api(&data.username) != data.username { if sanitize_html_api(&data.username) != data.username {
Err(LemmyErrorType::InvalidName)?; Err(LemmyErrorType::InvalidName)?;
} }
let answer = sanitize_html_api_opt(&data.answer); let answer = sanitize_html_api_opt(&data.answer);