Diaspora public key published in WebFinger

This commit is contained in:
Mikael Nordfeldth
2014-11-06 21:05:31 +01:00
parent 1076a5e2eb
commit 29ac42addd
2 changed files with 9 additions and 0 deletions

View File

@@ -1320,6 +1320,8 @@ class OStatusPlugin extends Plugin
if ($magicsig instanceof Magicsig) {
$xrd->links[] = new XML_XRD_Element_Link(Magicsig::PUBLICKEYREL,
'data:application/magic-public-key,'. $magicsig->toString());
$xrd->links[] = new XML_XRD_Element_Link(Magicsig::DIASPORA_PUBLICKEYREL,
base64_encode($magicsig->exportPublicKey()));
}
// TODO - finalize where the redirect should go on the publisher