aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorThomas Willingham <beardyunixer@beardyunixer.com>2014-09-15 17:10:11 +0100
committerThomas Willingham <beardyunixer@beardyunixer.com>2014-09-15 17:10:11 +0100
commit68ecc673b109be50dc04cf72af8ce2296c70b86b (patch)
tree0ecaa24425d2f69528ad99763d929cccd677d148 /include/zot.php
parente3b967f475e8933567ba7d80dacb6d496224fe55 (diff)
parenteaf3bd3326a657662321df791280b41293f54ef2 (diff)
downloadvolse-hubzilla-68ecc673b109be50dc04cf72af8ce2296c70b86b.tar.gz
volse-hubzilla-68ecc673b109be50dc04cf72af8ce2296c70b86b.tar.bz2
volse-hubzilla-68ecc673b109be50dc04cf72af8ce2296c70b86b.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/zot.php b/include/zot.php
index c204375e1..f6732037a 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -1121,6 +1121,11 @@ function zot_import($arr, $sender_url) {
$deliveries = allowed_public_recips($i);
+ if($i['message'] && array_key_exists('type',$i['message']) && $i['message']['type'] === 'location') {
+ $sys = get_sys_channel();
+ $deliveries = array(array('hash' => $sys['xchan_hash']));
+ }
+
// if the scope is anything but 'public' we're going to store it as private regardless
// of the private flag on the post.
@@ -1206,7 +1211,7 @@ function zot_import($arr, $sender_url) {
$arr = $i['message'];
logger('Location message received: ' . print_r($arr,true), LOGGER_DATA);
- logger('Location messaeg recipients: ' . print_r($deliveries,true), LOGGER_DATA);
+ logger('Location message recipients: ' . print_r($deliveries,true), LOGGER_DATA);
$result = process_location_delivery($i['notify']['sender'],$arr,$deliveries);
}
@@ -1665,7 +1670,8 @@ function process_location_delivery($sender,$arr,$deliveries) {
if($r)
$sender['key'] = $r[0]['xchan_pubkey'];
- sync_locations($sender,$arr,true);
+ $x = sync_locations($sender,$arr,true);
+ logger('process_location_delivery: results: ' . print_r($x,true), LOGGER_DATA);
}
// We need to merge this code with that in the import_xchan function so as to make it