From 43251ed8ce8a59472686321b8faa2b352928d239 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Fri, 18 Sep 2015 22:00:33 -0700 Subject: add reporting site to delivery report --- include/gprobe.php | 3 +++ include/zot.php | 2 ++ 2 files changed, 5 insertions(+) (limited to 'include') 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) { -- cgit v1.2.3