From 4c2a1e572a03e253f05f03e400af26d403cbda32 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 22 Jan 2015 21:04:54 -0800 Subject: start on item_restrict conversion --- include/expire.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/expire.php') diff --git a/include/expire.php b/include/expire.php index a229bd4ac..b0bf55e4f 100644 --- a/include/expire.php +++ b/include/expire.php @@ -7,8 +7,7 @@ function expire_run($argv, $argc){ cli_startup(); - $r = q("select id from item where (item_restrict & %d)>0 and not (item_restrict & %d)>0 and changed < %s - INTERVAL %s", - intval(ITEM_DELETED), + $r = q("select id from item where item_deleted = 1 and not (item_restrict & %d)>0 and changed < %s - INTERVAL %s", intval(ITEM_PENDING_REMOVE), db_utcnow(), db_quoteinterval('10 DAY') ); -- cgit v1.2.3