Tests considering removing of the title
This commit is contained in:
parent
a81af2e042
commit
52569e536e
|
@ -306,6 +306,9 @@ function get_atom_elements($feed,$item) {
|
||||||
$res['body'] = unxmlify($item->get_content());
|
$res['body'] = unxmlify($item->get_content());
|
||||||
$res['plink'] = unxmlify($item->get_link(0));
|
$res['plink'] = unxmlify($item->get_link(0));
|
||||||
|
|
||||||
|
//$debugfile = tempnam("/home/ike/log", "item-res-");
|
||||||
|
//file_put_contents($debugfile, serialize($res));
|
||||||
|
|
||||||
if($res['plink'])
|
if($res['plink'])
|
||||||
$base_url = implode('/', array_slice(explode('/',$res['plink']),0,3));
|
$base_url = implode('/', array_slice(explode('/',$res['plink']),0,3));
|
||||||
else
|
else
|
||||||
|
@ -1645,7 +1648,6 @@ function consume_feed($xml,$importer,&$contact, &$hub, $datedir = 0, $pass = 0)
|
||||||
$item_id = $item->get_id();
|
$item_id = $item->get_id();
|
||||||
$datarray = get_atom_elements($feed,$item);
|
$datarray = get_atom_elements($feed,$item);
|
||||||
|
|
||||||
|
|
||||||
if((! x($datarray,'author-name')) && ($contact['network'] != NETWORK_DFRN))
|
if((! x($datarray,'author-name')) && ($contact['network'] != NETWORK_DFRN))
|
||||||
$datarray['author-name'] = $contact['name'];
|
$datarray['author-name'] = $contact['name'];
|
||||||
if((! x($datarray,'author-link')) && ($contact['network'] != NETWORK_DFRN))
|
if((! x($datarray,'author-link')) && ($contact['network'] != NETWORK_DFRN))
|
||||||
|
@ -3469,4 +3471,4 @@ function posted_date_widget($url,$uid,$wall) {
|
||||||
'$dates' => $ret
|
'$dates' => $ret
|
||||||
));
|
));
|
||||||
return $o;
|
return $o;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue