Restore previous behaviour in page "feed-items" (display read and unread items)

This commit is contained in:
Frédéric Guillot 2013-09-18 19:29:39 -04:00
parent fe0a5f4a55
commit 46ef3dffe4

View File

@ -583,7 +583,7 @@ function count_feed_items($feed_id)
return \PicoTools\singleton('db') return \PicoTools\singleton('db')
->table('items') ->table('items')
->eq('feed_id', $feed_id) ->eq('feed_id', $feed_id)
->eq('status', 'unread') ->in('status', array('unread', 'read'))
->count(); ->count();
} }
@ -604,7 +604,7 @@ function get_feed_items($feed_id, $offset = null, $limit = null, $order_column =
'feeds.site_url' 'feeds.site_url'
) )
->join('feeds', 'id', 'feed_id') ->join('feeds', 'id', 'feed_id')
->eq('status', 'unread') ->in('status', array('unread', 'read'))
->eq('feed_id', $feed_id) ->eq('feed_id', $feed_id)
->orderBy($order_column, $order_direction) ->orderBy($order_column, $order_direction)
->offset($offset) ->offset($offset)