aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-12-30 23:51:39 -0800
committerfriendica <info@friendica.com>2012-12-30 23:51:39 -0800
commit2d113f0c87952488c1b3e560f1ec4ec1d37a2585 (patch)
tree5dda167033d4f210edc70ff830ceaf133bee67c8 /include/poller.php
parent83db4abaab1cebff5c76a1cff4606f495bb7246e (diff)
downloadvolse-hubzilla-2d113f0c87952488c1b3e560f1ec4ec1d37a2585.tar.gz
volse-hubzilla-2d113f0c87952488c1b3e560f1ec4ec1d37a2585.tar.bz2
volse-hubzilla-2d113f0c87952488c1b3e560f1ec4ec1d37a2585.zip
refresh now works on poller runs
Diffstat (limited to 'include/poller.php')
-rw-r--r--include/poller.php19
1 files changed, 8 insertions, 11 deletions
diff --git a/include/poller.php b/include/poller.php
index 3052ace64..00e336453 100644
--- a/include/poller.php
+++ b/include/poller.php
@@ -103,18 +103,15 @@ function poller_run($argv, $argc){
);
$contacts = q("SELECT abook_id, abook_updated, abook_closeness, abook_channel
- FROM abook LEFT JOIN account on abook_account = account_id
+ FROM abook LEFT JOIN account on abook_account = account_id where 1
$sql_extra
- AND not ( abook_flags & %d ) AND not ( abook_flags & %d )
- AND not ( abook_flags & %d ) AND not ( abook_flags & %d )
- AND not ( abook_flags & %d ) AND ( account_flags & %d ) $abandon_sql ORDER BY RAND()",
-
- intval(ABOOK_FLAG_BLOCKED),
- intval(ABOOK_FLAG_IGNORED),
- intval(ABOOK_FLAG_PENDING),
- intval(ABOOK_FLAG_ARCHIVED),
- intval(ABOOK_FLAG_SELF),
- intval(ACCOUNT_OK)
+ AND (( abook_flags = %d ) OR ( abook_flags = %d ))
+ AND (( account_flags = %d ) OR ( account_flags = %d )) $abandon_sql ORDER BY RAND()",
+
+ intval(ABOOK_FLAG_HIDDEN),
+ intval(0),
+ intval(ACCOUNT_OK),
+ intval(ACCOUNT_UNVERIFIED) // FIXME
);