From ebb75340ec1b152eab0319f5811711ad192a2802 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 25 Oct 2012 00:10:53 -0700 Subject: fixes to photo linked items, shut up poller until I can get to that --- include/poller.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'include/poller.php') diff --git a/include/poller.php b/include/poller.php index 31ca91cfa..5fc438c8d 100644 --- a/include/poller.php +++ b/include/poller.php @@ -63,9 +63,14 @@ function poller_run($argv, $argc){ // expire any expired accounts - q("UPDATE user SET `account_expired` = 1 where `account_expired` = 0 - AND `account_expires_on` != '0000-00-00 00:00:00' - AND `account_expires_on` < UTC_TIMESTAMP() "); + q("UPDATE account + SET account_flags = account_flags | %d + where not account_flags & %d + and account_expires != '0000-00-00 00:00:00' + and account_expires < UTC_TIMESTAMP() ", + intval(ACCOUNT_EXPIRED), + intval(ACCOUNT_EXPIRED) + ); $abandon_days = intval(get_config('system','account_abandon_days')); if($abandon_days < 1) @@ -145,6 +150,9 @@ function poller_run($argv, $argc){ : '' ); +// FIXME +return; + $contacts = q("SELECT `contact`.`id` FROM `contact` LEFT JOIN `user` ON `user`.`uid` = `contact`.`uid` WHERE ( `rel` = %d OR `rel` = %d ) AND `poll` != '' AND NOT `network` IN ( '%s', '%s' ) -- cgit v1.2.3