mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
fix: Remove legacy check for u. prefix
This commit is contained in:
@@ -90,14 +90,6 @@ pub(crate) async fn set_profile_key_route(
|
|||||||
)));
|
)));
|
||||||
};
|
};
|
||||||
|
|
||||||
if body
|
|
||||||
.kv_pair
|
|
||||||
.keys()
|
|
||||||
.any(|key| key.starts_with("u.") && !profile_key_value.is_string())
|
|
||||||
{
|
|
||||||
return Err!(Request(BadJson("u.* profile key fields must be strings")));
|
|
||||||
}
|
|
||||||
|
|
||||||
if body.kv_pair.keys().any(|key| key.len() > 128) {
|
if body.kv_pair.keys().any(|key| key.len() > 128) {
|
||||||
return Err!(Request(BadJson("Key names cannot be longer than 128 bytes")));
|
return Err!(Request(BadJson("Key names cannot be longer than 128 bytes")));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user