aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-18 22:00:33 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-18 22:00:33 -0700
commit43251ed8ce8a59472686321b8faa2b352928d239 (patch)
treee69c6e8652349870e0a07868f493991c857180cf /include
parent1a16822987df93054482600f8c83c4fba7ffeda9 (diff)
downloadvolse-hubzilla-43251ed8ce8a59472686321b8faa2b352928d239.tar.gz
volse-hubzilla-43251ed8ce8a59472686321b8faa2b352928d239.tar.bz2
volse-hubzilla-43251ed8ce8a59472686321b8faa2b352928d239.zip
add reporting site to delivery report
Diffstat (limited to 'include')
-rw-r--r--include/gprobe.php3
-rw-r--r--include/zot.php2
2 files changed, 5 insertions, 0 deletions
diff --git a/include/gprobe.php b/include/gprobe.php
index 48c1c8e14..d8d893d9e 100644
--- a/include/gprobe.php
+++ b/include/gprobe.php
@@ -14,6 +14,9 @@ function gprobe_run($argv, $argc){
$url = hex2bin($argv[1]);
+ if(! strpos($url,'@'))
+ return;
+
$r = q("select * from xchan where xchan_addr = '%s' limit 1",
dbesc($url)
);
diff --git a/include/zot.php b/include/zot.php
index 69e361331..0b713faae 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -1531,6 +1531,8 @@ function process_delivery($sender, $arr, $deliveries, $relay, $public = false, $
$result = array();
+ $result['site'] = z_root();
+
// We've validated the sender. Now make sure that the sender is the owner or author
if(! $public) {