From 5edb1bd64a4777d04e37bd6d7a058118fe371085 Mon Sep 17 00:00:00 2001 From: Bruce Doan Date: Mon, 23 Mar 2015 14:33:32 +0700 Subject: [PATCH] Do not send removed/pruned item(s) to client --- fever/index.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fever/index.php b/fever/index.php index abb2b43..90673fb 100644 --- a/fever/index.php +++ b/fever/index.php @@ -137,7 +137,6 @@ route('items', function() { $query = Database::get('db') ->table('items') - ->limit(50) ->columns( 'rowid', 'feed_id', @@ -148,7 +147,9 @@ route('items', function() { 'updated', 'status', 'bookmark' - ); + ) + ->limit(50) + ->neq('status', 'removed'); if (isset($_GET['since_id']) && is_numeric($_GET['since_id'])) {