From: fabrixxm Date: Mon, 28 Dec 2015 17:31:54 +0000 (+0100) Subject: Merge pull request #2218 from annando/1512-mail-participiants X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9a307a4e2bf1d9f61d2da86ad6fa32e32ebe377f;hp=2f13506180a38f0e85a79698e61c10dd62ab8a21;p=friendica.git Merge pull request #2218 from annando/1512-mail-participiants Bugfix: The participants on the mail page were displayed wrong --- diff --git a/include/Scrape.php b/include/Scrape.php index 6ee3dabfca..cb192c77c2 100644 --- a/include/Scrape.php +++ b/include/Scrape.php @@ -547,6 +547,19 @@ function probe_url($url, $mode = PROBE_NORMAL, $level = 1) { } } + // Scrape the public key from the hcard. + // Diaspora will remove it from the webfinger somewhere in the future. + if (($hcard != "") AND ($pubkey == "")) { + $ret = scrape_dfrn(($hcard) ? $hcard : $dfrn, true); + if (isset($ret["key"])) { + $hcard_key = $ret["key"]; + if(strstr($hcard_key,'RSA ')) + $pubkey = rsatopem($hcard_key); + else + $pubkey = $hcard_key; + } + } + if($diaspora && $diaspora_base && $diaspora_guid) { if($mode == PROBE_DIASPORA || ! $notify) { $notify = $diaspora_base . 'receive/users/' . $diaspora_guid;