Don't autoflush bookmark
This commit is contained in:
parent
01aaa8f1c1
commit
7ac57db487
@ -417,6 +417,7 @@ function autoflush()
|
|||||||
|
|
||||||
\PicoTools\singleton('db')
|
\PicoTools\singleton('db')
|
||||||
->table('items')
|
->table('items')
|
||||||
|
->eq('bookmark', 0)
|
||||||
->eq('status', 'read')
|
->eq('status', 'read')
|
||||||
->lt('updated', strtotime('-'.$autoflush.'day'))
|
->lt('updated', strtotime('-'.$autoflush.'day'))
|
||||||
->save(array('status' => 'removed', 'content' => ''));
|
->save(array('status' => 'removed', 'content' => ''));
|
||||||
|
Loading…
Reference in New Issue
Block a user