From 4abf96687827c8c3acef71510c2b91a6d3185a55 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 13 Jun 2013 22:08:38 -0400 Subject: [PATCH] Content column is flushed when the item status is set to removed --- model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/model.php b/model.php index 0e277bc..5e61ee1 100644 --- a/model.php +++ b/model.php @@ -317,7 +317,7 @@ function set_item_removed($id) \PicoTools\singleton('db') ->table('items') ->eq('id', $id) - ->save(array('status' => 'removed')); + ->save(array('status' => 'removed', 'content' => '')); } @@ -384,7 +384,7 @@ function mark_as_removed() \PicoTools\singleton('db') ->table('items') ->eq('status', 'read') - ->save(array('status' => 'removed')); + ->save(array('status' => 'removed', 'content' => '')); } @@ -398,7 +398,7 @@ function autoflush() ->table('items') ->eq('status', 'read') ->lt('updated', strtotime('-'.$autoflush.'day')) - ->save(array('status' => 'removed')); + ->save(array('status' => 'removed', 'content' => '')); } }