Fix rate limit error messages. Fixes #2428 (#2449)

* Fix rate limit error messages. Fixes #2428

* Simplify
remove_pointless_language
Dessalines 2022-09-26 10:40:42 -04:00 committed by GitHub
parent 9ce15ed071
commit 3adb293541
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -498,8 +498,8 @@ impl ChatServer {
if passed {
fut.await
} else {
// if rate limit was hit, respond with empty message
Ok("".to_string())
// if rate limit was hit, respond with message
Err(LemmyError::from_message("rate_limit_error"))
}
}
}