diff options
author | zotlabs <mike@macgirvin.com> | 2017-05-25 13:37:13 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-05-25 13:37:13 -0700 |
commit | b4da2d35bf8084da812be0716917a0f88cf68f91 (patch) | |
tree | 32cf6c3b86773c152ab22c534a07ae2d84285008 /include/zot.php | |
parent | fd357f87be5bbdbe135173305cdc9ba550a34e21 (diff) | |
download | volse-hubzilla-b4da2d35bf8084da812be0716917a0f88cf68f91.tar.gz volse-hubzilla-b4da2d35bf8084da812be0716917a0f88cf68f91.tar.bz2 volse-hubzilla-b4da2d35bf8084da812be0716917a0f88cf68f91.zip |
start using the abook_not_here flag (requires changes in addons, not easily portable to hubzilla)
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/zot.php b/include/zot.php index 748fe7b99..d2088f272 100644 --- a/include/zot.php +++ b/include/zot.php @@ -3289,6 +3289,11 @@ function process_channel_sync_delivery($sender, $arr, $deliveries) { if(! array_key_exists('abook_xchan',$clean)) continue; + if(array_key_exists('abook_instance',$clean) && $clean['abook_instance'] && strpos($clean['abook_instance'],z_root()) === false) { + $clean['abook_not_here'] = 1; + } + + $r = q("select * from abook where abook_xchan = '%s' and abook_channel = %d limit 1", dbesc($clean['abook_xchan']), intval($channel['channel_id']) |