]> git.mxchange.org Git - friendica.git/commitdiff
item tags instead of feed
authorFriendika <info@friendika.com>
Wed, 6 Jul 2011 03:32:43 +0000 (20:32 -0700)
committerFriendika <info@friendika.com>
Wed, 6 Jul 2011 03:32:43 +0000 (20:32 -0700)
include/Scrape.php

index c2663a87434cf863c683ff2fde8a2da2a8e75d36..fbfec176f8894d7cbc875bd81451d78b54c6d61d 100644 (file)
@@ -494,7 +494,7 @@ function probe_url($url) {
                                                        $vcard['photo'] = unxmlify($rawmedia[0]['attribs']['']['url']);
                                        }
                                        if(! $vcard['photo']) {
-                                               $rawtags = $item->get_feed_tags( SIMPLEPIE_NAMESPACE_ATOM_10, 'author');
+                                               $rawtags = $item->get_item_tags( SIMPLEPIE_NAMESPACE_ATOM_10, 'author');
                                        if($rawtags) {
                                                        $elems = $rawtags[0]['child'][SIMPLEPIE_NAMESPACE_ATOM_10];
                                                        if((x($elems,'link')) && ($elems['link'][0]['attribs']['']['rel'] === 'photo'))