Add profile data validation to get_or_import_profile_by_actor_id

This commit is contained in:
silverpill 2022-02-16 23:46:01 +00:00
parent 848de1d685
commit 4e010f1698

View file

@ -66,6 +66,7 @@ pub async fn get_or_import_profile_by_actor_id(
err err
})?; })?;
log::info!("fetched profile {}", profile_data.acct); log::info!("fetched profile {}", profile_data.acct);
profile_data.clean()?;
let profile = create_profile(db_client, profile_data).await?; let profile = create_profile(db_client, profile_data).await?;
profile profile
}, },