Increase max size of profile field name

This commit is contained in:
silverpill 2022-07-12 19:03:44 +00:00
parent 7ddce0a24d
commit c78af51398
2 changed files with 3 additions and 3 deletions

View file

@ -33,7 +33,7 @@ pub async fn handle_delete(
actix_rt::spawn(async move {
deletion_queue.process(&config).await;
});
log::info!("deleted profie {}", profile.acct);
log::info!("deleted profile {}", profile.acct);
return Ok(Some(PERSON));
};
let post = match get_post_by_object_id(db_client, &object_id).await {

View file

@ -46,8 +46,8 @@ pub fn clean_bio(bio: &str, is_remote: bool) -> Result<String, ValidationError>
Ok(cleaned_bio)
}
const FIELD_NAME_MAX_SIZE: usize = 100;
const FIELD_VALUE_MAX_SIZE: usize = 2000;
const FIELD_NAME_MAX_SIZE: usize = 500;
const FIELD_VALUE_MAX_SIZE: usize = 5000;
/// Validates extra fields and removes fields with empty labels
pub fn clean_extra_fields(extra_fields: &[ExtraField])