mirror of
https://github.com/friendica/friendica
synced 2025-04-25 15:10:13 +00:00
import items from feeds in inverse date order
This commit is contained in:
parent
8805635293
commit
c061603746
2 changed files with 7 additions and 4 deletions
|
@ -921,7 +921,10 @@ function consume_feed($xml,$importer,$contact, &$hub, $datedir = 0) {
|
|||
|
||||
// Now process the feed
|
||||
if($feed->get_item_quantity()) {
|
||||
foreach($feed->get_items() as $item) {
|
||||
// in inverse date order
|
||||
if ($datedir)
|
||||
$items = array_reverse($feed->get_items());
|
||||
foreach($items as $item) {
|
||||
|
||||
$deleted = false;
|
||||
|
||||
|
@ -1307,4 +1310,4 @@ function atom_entry($item,$type,$author,$owner,$comment = false) {
|
|||
|
||||
return $o;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue