aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Poller.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-04-21 07:45:32 +0000
committerMario <mario@mariovavti.com>2023-04-21 07:45:32 +0000
commitf277d08244986c080d48af3e8bc86a9886d098bc (patch)
tree4773398a9d9e103f00301889f33711a70bb33e81 /Zotlabs/Daemon/Poller.php
parentd7c479fa6d8e9297a23017c60788c918208cfd9d (diff)
downloadvolse-hubzilla-f277d08244986c080d48af3e8bc86a9886d098bc.tar.gz
volse-hubzilla-f277d08244986c080d48af3e8bc86a9886d098bc.tar.bz2
volse-hubzilla-f277d08244986c080d48af3e8bc86a9886d098bc.zip
queue and poller testing
Diffstat (limited to 'Zotlabs/Daemon/Poller.php')
-rw-r--r--Zotlabs/Daemon/Poller.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/Zotlabs/Daemon/Poller.php b/Zotlabs/Daemon/Poller.php
index 9e47a5e77..b6b52af81 100644
--- a/Zotlabs/Daemon/Poller.php
+++ b/Zotlabs/Daemon/Poller.php
@@ -49,6 +49,11 @@ class Poller {
: ''
);
+ $allow_feeds = get_config('system', 'feed_contacts');
+ if(!$allow_feeds) {
+ $sql_extra .= ' and abook_feed = 0 ';
+ }
+
$randfunc = db_getfunc('RAND');
$contacts = q("SELECT abook.abook_updated, abook.abook_connected, abook.abook_feed,
@@ -58,7 +63,7 @@ class Poller {
account.account_lastlog, account.account_flags
FROM abook LEFT JOIN xchan on abook_xchan = xchan_hash
LEFT JOIN account on abook_account = account_id
- where abook_self = 0
+ where abook_self = 0 and abook_pending = 0 and abook_archived = 0 and abook_blocked = 0 and abook_ignored = 0
$sql_extra
AND (( account_flags = %d ) OR ( account_flags = %d )) $abandon_sql ORDER BY $randfunc",
intval(ACCOUNT_OK),