From 52569e536e217c3178f13d2a722eb8ebfd801465 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Fri, 29 Jun 2012 21:40:54 +0200 Subject: [PATCH] Tests considering removing of the title --- include/items.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/items.php b/include/items.php index a0dd1c8159..fbd4af5f3d 100755 --- a/include/items.php +++ b/include/items.php @@ -306,6 +306,9 @@ function get_atom_elements($feed,$item) { $res['body'] = unxmlify($item->get_content()); $res['plink'] = unxmlify($item->get_link(0)); + //$debugfile = tempnam("/home/ike/log", "item-res-"); + //file_put_contents($debugfile, serialize($res)); + if($res['plink']) $base_url = implode('/', array_slice(explode('/',$res['plink']),0,3)); else @@ -1645,7 +1648,6 @@ function consume_feed($xml,$importer,&$contact, &$hub, $datedir = 0, $pass = 0) $item_id = $item->get_id(); $datarray = get_atom_elements($feed,$item); - if((! x($datarray,'author-name')) && ($contact['network'] != NETWORK_DFRN)) $datarray['author-name'] = $contact['name']; if((! x($datarray,'author-link')) && ($contact['network'] != NETWORK_DFRN)) @@ -3469,4 +3471,4 @@ function posted_date_widget($url,$uid,$wall) { '$dates' => $ret )); return $o; -} \ No newline at end of file +} -- 2.39.5