feed dates weren't being honoured. When that was fixed they turned out to be reversed.

This commit is contained in:
redmatrix 2016-02-10 23:00:40 -08:00
parent 06a1258a9a
commit a26d1794fe
2 changed files with 5 additions and 3 deletions

View File

@ -593,8 +593,8 @@ function get_feed_for($channel, $observer_hash, $params) {
}
$items = items_fetch(array(
'wall' => '1',
'datequery' => $params['begin'],
'datequery2' => $params['end'],
'datequery' => $params['end'],
'datequery2' => $params['begin'],
'start' => $params['start'], // FIXME
'records' => $params['records'], // FIXME
'direction' => $params['direction'], // FIXME
@ -4915,7 +4915,7 @@ function items_fetch($arr,$channel = null,$observer_hash = null,$client_mode = C
if(! array_key_exists('nouveau',$arr)) {
$sql_extra2 = " AND item.parent = item.id ";
$sql_extra3 = '';
// $sql_extra3 = '';
}
if($arr['search']) {

View File

@ -31,7 +31,9 @@ function feed_init(&$a) {
killme();
logger('mod_feed: public feed request from ' . $_SERVER['REMOTE_ADDR'] . ' for ' . $channel['channel_address']);
echo get_public_feed($channel,$params);
killme();
}