aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-22 16:45:14 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-22 16:45:14 -0700
commite726adc27b5b3c7349712608e4e1468154f5b788 (patch)
tree79f0214fbb6f200b5346193afeb805ae0adc7dc5 /include
parent1d7d9818fabcdf2bd34e9e9355c97045dd4ef359 (diff)
parent642f460dcad84b8254126f316db4c0225a958958 (diff)
downloadvolse-hubzilla-e726adc27b5b3c7349712608e4e1468154f5b788.tar.gz
volse-hubzilla-e726adc27b5b3c7349712608e4e1468154f5b788.tar.bz2
volse-hubzilla-e726adc27b5b3c7349712608e4e1468154f5b788.zip
Merge https://github.com/redmatrix/redmatrix into pending_merge
Diffstat (limited to 'include')
-rw-r--r--include/zot.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/zot.php b/include/zot.php
index 714bdd3df..7a60e2fd1 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -3320,7 +3320,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;