aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-11-08 01:11:50 -0800
committerFriendika <info@friendika.com>2010-11-08 01:11:50 -0800
commita8d6d72b7bcfbd36d37bc36bbc892ddc3ead477e (patch)
tree0e0d91219e93acc989d6209cb8cfe20366c60c3f /include
parentfbb01666906ba4f909dc9eac98aa3ca6a936b99e (diff)
downloadvolse-hubzilla-a8d6d72b7bcfbd36d37bc36bbc892ddc3ead477e.tar.gz
volse-hubzilla-a8d6d72b7bcfbd36d37bc36bbc892ddc3ead477e.tar.bz2
volse-hubzilla-a8d6d72b7bcfbd36d37bc36bbc892ddc3ead477e.zip
use date ordering on public feeds
Diffstat (limited to 'include')
-rw-r--r--include/items.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index c963d9189..d407b4797 100644
--- a/include/items.php
+++ b/include/items.php
@@ -723,13 +723,16 @@ function dfrn_deliver($owner,$contact,$atom) {
*
*/
-function consume_feed($xml,$importer,$contact, &$hub) {
+function consume_feed($xml,$importer,$contact, &$hub, $datedir = 0) {
require_once('simplepie/simplepie.inc');
$feed = new SimplePie();
$feed->set_raw_data($xml);
- $feed->enable_order_by_date(false);
+ if($datedir)
+ $feed->enable_order_by_date(true);
+ else
+ $feed->enable_order_by_date(false);
$feed->init();
// Check at the feed level for updated contact name and/or photo