Function activitypub_federation::fetch::webfinger::webfinger_resolve_actor
source · pub async fn webfinger_resolve_actor<T: Clone, Kind>(
identifier: &str,
data: &Data<T>
) -> Result<Kind, <Kind as Object>::Error>
Expand description
Takes an identifier of the form name@example.com
, and returns an object of Kind
.
For this the identifier is first resolved via webfinger protocol to an Activitypub ID. This ID is then fetched using ObjectId::dereference, and the result returned.