Increase max size of profile field name
This commit is contained in:
parent
7ddce0a24d
commit
c78af51398
2 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||
|
|
|
@ -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])
|
||||
|
|
Loading…
Reference in a new issue