Content column is flushed when the item status is set to removed
This commit is contained in:
parent
9151a295e5
commit
4abf966878
@ -317,7 +317,7 @@ function set_item_removed($id)
|
|||||||
\PicoTools\singleton('db')
|
\PicoTools\singleton('db')
|
||||||
->table('items')
|
->table('items')
|
||||||
->eq('id', $id)
|
->eq('id', $id)
|
||||||
->save(array('status' => 'removed'));
|
->save(array('status' => 'removed', 'content' => ''));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -384,7 +384,7 @@ function mark_as_removed()
|
|||||||
\PicoTools\singleton('db')
|
\PicoTools\singleton('db')
|
||||||
->table('items')
|
->table('items')
|
||||||
->eq('status', 'read')
|
->eq('status', 'read')
|
||||||
->save(array('status' => 'removed'));
|
->save(array('status' => 'removed', 'content' => ''));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -398,7 +398,7 @@ function autoflush()
|
|||||||
->table('items')
|
->table('items')
|
||||||
->eq('status', 'read')
|
->eq('status', 'read')
|
||||||
->lt('updated', strtotime('-'.$autoflush.'day'))
|
->lt('updated', strtotime('-'.$autoflush.'day'))
|
||||||
->save(array('status' => 'removed'));
|
->save(array('status' => 'removed', 'content' => ''));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user