* 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 {
|
||||
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