start on item_restrict conversion

This commit is contained in:
friendica
2015-01-22 21:04:54 -08:00
parent 6e0e3b2433
commit 4c2a1e572a
9 changed files with 53 additions and 54 deletions

View File

@@ -53,10 +53,9 @@ function poller_run($argv, $argc){
// expire any expired items
$r = q("select id from item where expires != '%s' and expires < %s
and ( item_restrict & %d ) = 0 ",
and item_deleted = 0 ",
dbesc(NULL_DATE),
db_utcnow(),
intval(ITEM_DELETED)
db_utcnow()
);
if($r) {
require_once('include/items.php');