fix(activitypub-base): populate also_known_as, profile_url, attachment from fetched actor
Some checks failed
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 10m0s
test / unit (pull_request) Failing after 11m10s
test / integration (pull_request) Failing after 17m19s
Some checks failed
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 10m0s
test / unit (pull_request) Failing after 11m10s
test / integration (pull_request) Failing after 17m19s
This commit is contained in:
@@ -301,9 +301,16 @@ impl Object for DbActor {
|
|||||||
bio: json.summary.clone(),
|
bio: json.summary.clone(),
|
||||||
avatar_url: json.icon.as_ref().map(|i| i.url.clone()),
|
avatar_url: json.icon.as_ref().map(|i| i.url.clone()),
|
||||||
banner_url: json.image.as_ref().map(|i| i.url.clone()),
|
banner_url: json.image.as_ref().map(|i| i.url.clone()),
|
||||||
also_known_as: None,
|
also_known_as: json.also_known_as.into_iter().next(),
|
||||||
profile_url: None,
|
profile_url: json.url.clone(),
|
||||||
attachment: vec![],
|
attachment: json
|
||||||
|
.attachment
|
||||||
|
.iter()
|
||||||
|
.map(|f| crate::user::ApProfileField {
|
||||||
|
name: f.name.clone(),
|
||||||
|
value: f.value.clone(),
|
||||||
|
})
|
||||||
|
.collect(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user