item tags instead of feed
This commit is contained in:
parent
8992c27fa6
commit
c552248b7c
|
@ -494,7 +494,7 @@ function probe_url($url) {
|
||||||
$vcard['photo'] = unxmlify($rawmedia[0]['attribs']['']['url']);
|
$vcard['photo'] = unxmlify($rawmedia[0]['attribs']['']['url']);
|
||||||
}
|
}
|
||||||
if(! $vcard['photo']) {
|
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) {
|
if($rawtags) {
|
||||||
$elems = $rawtags[0]['child'][SIMPLEPIE_NAMESPACE_ATOM_10];
|
$elems = $rawtags[0]['child'][SIMPLEPIE_NAMESPACE_ATOM_10];
|
||||||
if((x($elems,'link')) && ($elems['link'][0]['attribs']['']['rel'] === 'photo'))
|
if((x($elems,'link')) && ($elems['link'][0]['attribs']['']['rel'] === 'photo'))
|
||||||
|
|
Loading…
Reference in a new issue