mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-05 05:57:40 +03:00
fix(client): catch json suspended user error in better place
This commit is contained in:
parent
52260196f0
commit
f0ae3d3904
1 changed files with 1 additions and 1 deletions
|
@ -419,7 +419,7 @@ pub async fn json(path: String, quarantine: bool) -> Result<Value, String> {
|
|||
println!("{json:?}");
|
||||
|
||||
// If user is suspended
|
||||
if json["data"]["is_suspended"].as_bool().unwrap_or_default() {
|
||||
if json["data"]["is_suspended"].as_bool().unwrap_or_default() {
|
||||
return Err("suspended".into());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue