aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-03-25 21:32:12 -0700
committerfriendica <info@friendica.com>2013-03-25 21:32:12 -0700
commit884812bcbadc5ecdc7a38a10abfa5045667f7d2c (patch)
tree06c1f5eb973b5423e5726ae7106463571010cb4b /include/poller.php
parentd0133d6f8720d927e904f1a65706cbc83726788a (diff)
downloadvolse-hubzilla-884812bcbadc5ecdc7a38a10abfa5045667f7d2c.tar.gz
volse-hubzilla-884812bcbadc5ecdc7a38a10abfa5045667f7d2c.tar.bz2
volse-hubzilla-884812bcbadc5ecdc7a38a10abfa5045667f7d2c.zip
doco
Diffstat (limited to 'include/poller.php')
-rw-r--r--include/poller.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/poller.php b/include/poller.php
index 6f4736855..1dd065196 100644
--- a/include/poller.php
+++ b/include/poller.php
@@ -30,8 +30,8 @@ function poller_run($argv, $argc){
// expire any expired accounts
q("UPDATE account
- SET account_flags = account_flags | %d
- where not account_flags & %d
+ 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),
@@ -56,6 +56,10 @@ function poller_run($argv, $argc){
proc_run('php','include/expire.php');
}
+ // If this is a directory server, request a sync with an upstream
+ // directory at least once a day, up to once every poll interval.
+ // Pull remote changes and push local changes.
+ // potential issue: how do we keep from creating an endless update loop?
$manual_id = 0;
$generation = 0;