mirror of
https://gitlab.com/famedly/conduit.git
synced 2025-01-19 04:30:10 +00:00
Fix avatar_url error message if not starting with mxc://
Took 8 minutes
This commit is contained in:
parent
8bcbc983c3
commit
57264f72e9
@ -365,7 +365,7 @@ fn set_avatar_url_route(
|
|||||||
debug!("Request contains an invalid avatar_url.");
|
debug!("Request contains an invalid avatar_url.");
|
||||||
return MatrixResult(Err(Error {
|
return MatrixResult(Err(Error {
|
||||||
kind: ErrorKind::InvalidParam,
|
kind: ErrorKind::InvalidParam,
|
||||||
message: "Missing avatar_url".to_owned(),
|
message: "avatar_url has to start with mxc://.".to_owned(),
|
||||||
status_code: http::StatusCode::BAD_REQUEST,
|
status_code: http::StatusCode::BAD_REQUEST,
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user