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

This commit is contained in:
2026-05-14 21:47:34 +02:00
parent 0c4df36b95
commit ed6996e350

View File

@@ -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(),
}) })
} }
} }