mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 09:44:46 +00:00
* Fix rate limit error messages. Fixes #2428 * Simplify
This commit is contained in:
parent
9ce15ed071
commit
3adb293541
|
@ -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"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue