Use manually_approves_followers field in Account::from_profile

This commit is contained in:
silverpill 2023-03-21 23:12:13 +00:00
parent b85a0fb7ac
commit eb1f815548

View file

@ -139,10 +139,6 @@ impl Account {
.map(|image| get_file_url(base_url, &image.file_name));
let header_url = profile.banner
.map(|image| get_file_url(base_url, &image.file_name));
// TODO: use profile.manually_approves_followers
let is_locked = profile.actor_json
.map(|actor| actor.manually_approves_followers)
.unwrap_or(false);
let mut identity_proofs = vec![];
for proof in profile.identity_proofs.into_inner() {
@ -213,7 +209,7 @@ impl Account {
note: profile.bio,
avatar: avatar_url,
header: header_url,
locked: is_locked,
locked: profile.manually_approves_followers,
identity_proofs,
payment_options,
fields: extra_fields,