mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-23 04:53:06 +00:00
* Fix rate limit error messages. Fixes #2428 * Simplify
This commit is contained in:
parent
9ce15ed071
commit
3adb293541
1 changed files with 2 additions and 2 deletions
|
@ -498,8 +498,8 @@ impl ChatServer {
|
||||||
if passed {
|
if passed {
|
||||||
fut.await
|
fut.await
|
||||||
} else {
|
} else {
|
||||||
// if rate limit was hit, respond with empty message
|
// if rate limit was hit, respond with message
|
||||||
Ok("".to_string())
|
Err(LemmyError::from_message("rate_limit_error"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue