diff --git a/model.php b/model.php index 6a0213c..0dbdb25 100644 --- a/model.php +++ b/model.php @@ -242,9 +242,8 @@ function update_feed_cache_infos($feed_id, $last_modified, $etag) function remove_feed($feed_id) { + // Items are removed by a sql constraint $db = \PicoTools\singleton('db'); - $db->table('items')->eq('feed_id', $feed_id)->remove(); - return $db->table('feeds')->eq('id', $feed_id)->remove(); }