]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #2218 from annando/1512-mail-participiants
authorfabrixxm <fabrix.xm@gmail.com>
Mon, 28 Dec 2015 17:31:54 +0000 (18:31 +0100)
committerfabrixxm <fabrix.xm@gmail.com>
Mon, 28 Dec 2015 17:31:54 +0000 (18:31 +0100)
Bugfix: The participants on the mail page were displayed wrong

include/Scrape.php

index 6ee3dabfca88c11c42576e2a5c75c5194a96283e..cb192c77c2cd5c8c21580a51efe36920b8474076 100644 (file)
@@ -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;