diff options
author | redmatrix <git@macgirvin.com> | 2016-02-10 23:00:40 -0800 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-02-10 23:00:40 -0800 |
commit | a26d1794fea354c9c90570c6cdbdceb733d47e13 (patch) | |
tree | 8c0add73c7cbbc540d1f3dc4c3afb826fe71f625 | |
parent | 06a1258a9a86093770b9342442f2ada95a788cdd (diff) | |
download | volse-hubzilla-a26d1794fea354c9c90570c6cdbdceb733d47e13.tar.gz volse-hubzilla-a26d1794fea354c9c90570c6cdbdceb733d47e13.tar.bz2 volse-hubzilla-a26d1794fea354c9c90570c6cdbdceb733d47e13.zip |
feed dates weren't being honoured. When that was fixed they turned out to be reversed.
-rwxr-xr-x | include/items.php | 6 | ||||
-rw-r--r-- | mod/feed.php | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php index 7fed486a6..295bdb899 100755 --- a/include/items.php +++ b/include/items.php @@ -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']) { diff --git a/mod/feed.php b/mod/feed.php index eb72af9cf..087d3f827 100644 --- a/mod/feed.php +++ b/mod/feed.php @@ -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(); } |