From: Friendika Date: Wed, 21 Sep 2011 01:07:33 +0000 (-0700) Subject: no need to scrape Twitter profile photo from page - it's no longer there. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9115e9c90b749e1739d412df2d63ae96e0b89b3e;p=friendica.git no need to scrape Twitter profile photo from page - it's no longer there. --- diff --git a/include/Scrape.php b/include/Scrape.php index a55608c2d5..2af02fff5e 100644 --- a/include/Scrape.php +++ b/include/Scrape.php @@ -249,20 +249,6 @@ function scrape_feed($url) { return $ret; - $items = $dom->getElementsByTagName('img'); - - // get img elements (twitter) - - if($items) { - foreach($items as $item) { - $x = $item->getAttribute('id'); - if($x === 'profile-image') { - $ret['photo'] = $item->getAttribute('src'); - } - } - } - - $head = $dom->getElementsByTagName('base'); if($head) { foreach($head as $head0) {