fixes to photo linked items, shut up poller until I can get to that

This commit is contained in:
friendica
2012-10-25 00:10:53 -07:00
parent 939543b26d
commit ebb75340ec
2 changed files with 43 additions and 32 deletions

View File

@@ -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' )