aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Onepoll.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/Onepoll.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/Onepoll.php')
-rw-r--r--Zotlabs/Daemon/Onepoll.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/Zotlabs/Daemon/Onepoll.php b/Zotlabs/Daemon/Onepoll.php
index bde39007e..973bcf402 100644
--- a/Zotlabs/Daemon/Onepoll.php
+++ b/Zotlabs/Daemon/Onepoll.php
@@ -30,14 +30,10 @@ class Onepoll {
$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 $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),
- intval(ACCOUNT_OK),
- intval(ACCOUNT_UNVERIFIED)
+ $contacts = q("SELECT abook.*, xchan.* FROM abook
+ LEFT JOIN xchan ON xchan_hash = abook_xchan
+ WHERE abook_id = %d",
+ intval($contact_id)
);
if (!$contacts) {