diff --git a/src/classes/Pollers/Profile.php b/src/classes/Pollers/Profile.php index 9b12aef..42b0020 100644 --- a/src/classes/Pollers/Profile.php +++ b/src/classes/Pollers/Profile.php @@ -333,9 +333,6 @@ class Profile private static function validateParams(array $params): int { $errors = 0; - if (empty($params['key'])) { - $errors++; - } if (empty($params['dfrn-request'])) { $errors++; } diff --git a/src/classes/Utils/Scrape.php b/src/classes/Utils/Scrape.php index 758147c..2189b58 100644 --- a/src/classes/Utils/Scrape.php +++ b/src/classes/Utils/Scrape.php @@ -129,7 +129,7 @@ class Scrape $nodes_left = max(intval($max_nodes), $minNodes); $items = $dom->getElementsByTagName('*'); - $targets = array('fn', 'pdesc', 'photo', 'key', 'locality', 'region', 'postal-code', 'country-name'); + $targets = array('fn', 'pdesc', 'photo', 'locality', 'region', 'postal-code', 'country-name'); $targets_left = count($targets); foreach ($items as $item) { if (self::attributeContains($item->getAttribute('class'), 'vcard')) { @@ -147,10 +147,6 @@ class Scrape $params['photo'] = $vcard_element->getAttribute('src'); $targets_left = self::popScrapeTarget($targets, 'photo'); } - if (self::attributeContains($vcard_element->getAttribute('class'), 'key')) { - $params['key'] = $vcard_element->textContent; - $targets_left = self::popScrapeTarget($targets, 'key'); - } if (self::attributeContains($vcard_element->getAttribute('class'), 'locality')) { $params['locality'] = $vcard_element->textContent; $targets_left = self::popScrapeTarget($targets, 'locality');