aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-02-25 15:05:49 +0000
committerMario <mario@mariovavti.com>2021-02-25 15:05:49 +0000
commit373612a0465c924f5365d0e8d3a505da04b7a99f (patch)
treee2398eb57983f958ca8a9b84176d97846d72ffc8 /Zotlabs/Daemon
parentc1afa306c9b84eafd95a587c9a87ef141c0c3f08 (diff)
downloadvolse-hubzilla-373612a0465c924f5365d0e8d3a505da04b7a99f.tar.gz
volse-hubzilla-373612a0465c924f5365d0e8d3a505da04b7a99f.tar.bz2
volse-hubzilla-373612a0465c924f5365d0e8d3a505da04b7a99f.zip
do not poll feeds if feed_contacts are not allowed
Diffstat (limited to 'Zotlabs/Daemon')
-rw-r--r--Zotlabs/Daemon/Onepoll.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/Zotlabs/Daemon/Onepoll.php b/Zotlabs/Daemon/Onepoll.php
index 85394c8d0..598cf28e4 100644
--- a/Zotlabs/Daemon/Onepoll.php
+++ b/Zotlabs/Daemon/Onepoll.php
@@ -23,9 +23,15 @@ class Onepoll {
return;
}
+ $sql_extra = '';
+ $allow_feeds = get_config('system', 'feed_contacts');
+ if(!$allow_feeds) {
+ $sql_extra = ' and abook_feed = 0 ';
+ }
+
$contacts = q("SELECT abook.*, xchan.*, account.*
FROM abook LEFT JOIN account on abook_account = account_id left join xchan on xchan_hash = abook_xchan
- where abook_id = %d
+ where abook_id = %d $sql_extra
and abook_pending = 0 and abook_archived = 0 and abook_blocked = 0 and abook_ignored = 0
AND (( account_flags = %d ) OR ( account_flags = %d )) limit 1",
intval($contact_id),