diff options
author | friendica <info@friendica.com> | 2014-03-04 14:35:42 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-03-04 14:35:42 -0800 |
commit | 86d60f572f6accb086f7cd4271ababde2c5d3669 (patch) | |
tree | 4db82a891da7b73be248f083770716cb3f1099f5 /include/onepoll.php | |
parent | f2c8559170f7271a60df624d4222a2bc88435687 (diff) | |
download | volse-hubzilla-86d60f572f6accb086f7cd4271ababde2c5d3669.tar.gz volse-hubzilla-86d60f572f6accb086f7cd4271ababde2c5d3669.tar.bz2 volse-hubzilla-86d60f572f6accb086f7cd4271ababde2c5d3669.zip |
change flags for one-way connections from hidden to unconnected so we can still use hidden for - well hiding connections
Diffstat (limited to 'include/onepoll.php')
-rw-r--r-- | include/onepoll.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/onepoll.php b/include/onepoll.php index a821b76cf..e81d8bcf7 100644 --- a/include/onepoll.php +++ b/include/onepoll.php @@ -29,19 +29,16 @@ function onepoll_run($argv, $argc){ return; } - $d = datetime_convert(); - $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 - AND (( abook_flags = %d ) OR ( abook_flags = %d ) OR ( abook_flags & %d )) + AND (( abook_flags & %d ) OR ( abook_flags = %d )) AND (( account_flags = %d ) OR ( account_flags = %d )) limit 1", intval($contact_id), - intval(ABOOK_FLAG_HIDDEN), + intval(ABOOK_FLAG_HIDDEN|ABOOK_FLAG_PENDING|ABOOK_FLAG_UNCONNECTED), intval(0), - intval(ABOOK_FLAG_PENDING), intval(ACCOUNT_OK), intval(ACCOUNT_UNVERIFIED) ); |