use date ordering on public feeds
This commit is contained in:
parent
fbb0166690
commit
a8d6d72b7b
|
@ -723,12 +723,15 @@ 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');
|
require_once('simplepie/simplepie.inc');
|
||||||
|
|
||||||
$feed = new SimplePie();
|
$feed = new SimplePie();
|
||||||
$feed->set_raw_data($xml);
|
$feed->set_raw_data($xml);
|
||||||
|
if($datedir)
|
||||||
|
$feed->enable_order_by_date(true);
|
||||||
|
else
|
||||||
$feed->enable_order_by_date(false);
|
$feed->enable_order_by_date(false);
|
||||||
$feed->init();
|
$feed->init();
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,7 @@ function pubsub_post(&$a) {
|
||||||
|
|
||||||
require_once('include/items.php');
|
require_once('include/items.php');
|
||||||
|
|
||||||
consume_feed($xml,$importer,$contact,$feedhub);
|
consume_feed($xml,$importer,$contact,$feedhub,1);
|
||||||
|
|
||||||
hub_post_return();
|
hub_post_return();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue