]> git.mxchange.org Git - friendica.git/commitdiff
Tests considering removing of the title
authorMichael Vogel <icarus@dabo.de>
Fri, 29 Jun 2012 19:40:54 +0000 (21:40 +0200)
committerMichael Vogel <icarus@dabo.de>
Fri, 29 Jun 2012 19:40:54 +0000 (21:40 +0200)
include/items.php

index a0dd1c8159fc0a61130d7079541cba5c27960ca0..fbd4af5f3df367065b5fd2ebab74e39065e97c06 100755 (executable)
@@ -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
+}