Content column is flushed when the item status is set to removed

This commit is contained in:
Frederic Guillot 2013-06-13 22:08:38 -04:00
parent 9151a295e5
commit 4abf966878
1 changed files with 3 additions and 3 deletions

View File

@ -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' => ''));
}
}