]> git.mxchange.org Git - friendica.git/blobdiff - src/Network/Probe.php
BBCode - fixed syntax error
[friendica.git] / src / Network / Probe.php
index 49822c725a58b2d86025656e9682e7a80addc816..1a0607bf1223877dbbdfc0d5a07b047ed29a0a51 100644 (file)
@@ -417,7 +417,7 @@ class Probe
                                // This doesn't cover the case when a community isn't a community anymore
                                if (!empty($data['community']) && $data['community']) {
                                        $fields['community'] = $data['community'];
-                                       $fields['contact-type'] = Contact::ACCOUNT_TYPE_COMMUNITY;
+                                       $fields['contact-type'] = Contact::TYPE_COMMUNITY;
                                }
 
                                $fieldnames = [];
@@ -1302,7 +1302,6 @@ class Probe
                        $data["addr"] = str_replace('acct:', '', $webfinger["subject"]);
                }
 
-               $pubkey = "";
                if (is_array($webfinger["links"])) {
                        // The array is reversed to take into account the order of preference for same-rel links
                        // See: https://tools.ietf.org/html/rfc7033#section-4.4.4