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

* Fix rate limit error messages. Fixes #2428

* Simplify
This commit is contained in:
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

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"))
}
}
}