aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-22 16:43:36 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-22 16:43:36 -0700
commit642f460dcad84b8254126f316db4c0225a958958 (patch)
tree57b0b0d69599978dae0a4430f9f1d6989f250d45
parentc2dcc6880302406de6e1abf90c985975e8a4f13a (diff)
downloadvolse-hubzilla-642f460dcad84b8254126f316db4c0225a958958.tar.gz
volse-hubzilla-642f460dcad84b8254126f316db4c0225a958958.tar.bz2
volse-hubzilla-642f460dcad84b8254126f316db4c0225a958958.zip
report the channel sync
-rw-r--r--include/zot.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/zot.php b/include/zot.php
index a41295aad..eb04e421c 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -3281,7 +3281,17 @@ function process_channel_sync_delivery($sender, $arr, $deliveries) {
sync_items($channel,$arr['item_id']);
- $result[] = array($d['hash'],'channel sync updated',$channel['channel_name'],'');
+ // we should probably do this for all items, but usually we only send one.
+
+ require_once('include/DReport.php');
+
+ if(array_key_exists('item',$arr) && is_array($arr['item'][0]))
+ $DR = new DReport(z_root(),$d['hash'],$d['hash'],$arr['item'][0]['message_id'],'channel sync processed');
+ else
+ $DR = new DReport(z_root(),$d['hash'],$d['hash'],'sync packet','channel sync delivered');
+
+ $result[] = $DR->get();
+
}
return $result;