fix MSC4133 fields not being returned as original types
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
b4ef646485
commit
72797532b6
2 changed files with 16 additions and 5 deletions
|
@ -506,6 +506,10 @@ pub(crate) async fn get_profile_key_route(
|
|||
return Err!(Request(NotFound("The requested profile key does not exist.")));
|
||||
}
|
||||
|
||||
if profile_key_value.is_empty() {
|
||||
return Err!(Request(NotFound("The requested profile key does not exist.")));
|
||||
}
|
||||
|
||||
return Ok(get_profile_key::unstable::Response { value: profile_key_value });
|
||||
}
|
||||
}
|
||||
|
@ -522,5 +526,9 @@ pub(crate) async fn get_profile_key_route(
|
|||
return Err!(Request(NotFound("The requested profile key does not exist.")));
|
||||
}
|
||||
|
||||
if profile_key_value.is_empty() {
|
||||
return Err!(Request(NotFound("The requested profile key does not exist.")));
|
||||
}
|
||||
|
||||
Ok(get_profile_key::unstable::Response { value: profile_key_value })
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue