mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-25 15:39:11 +00:00
Fixing formatting.
This commit is contained in:
parent
c05458adcd
commit
8c419103b2
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue