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