fix: Remove legacy check for u. prefix

This commit is contained in:
Ginger committed 2025-09-15 12:51:09 +00:00
1 parent 95d87bd209
commit 48cbe20aeb
1 file changed
-8
-8
View File
@@ -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) {
return Err!(Request(BadJson("Key names cannot be longer than 128 bytes")));
}