[FreeNetwork] Initial multi-protocol support

This commit is contained in:
2021-12-02 04:25:58 +00:00
parent dbaee08038
commit d044039272
6 changed files with 307 additions and 53 deletions

View File

@@ -186,6 +186,11 @@ class ActivitypubActor extends Entity
throw new Exception(_m('Not a valid WebFinger address: ' . $e->getMessage()));
}
return self::fromXrd($addr, $xrd);
}
public static function fromXrd(string $addr, \XML_XRD $xrd): self
{
$hints = array_merge(
['webfinger' => $addr],
DiscoveryHints::fromXRD($xrd),