aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Libsync.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-11-03 13:09:11 +0000
committerMario <mario@mariovavti.com>2022-11-03 13:09:11 +0000
commite80191d4cdadd38978579edf17bf8188d7729c4e (patch)
treed7cdbb7a77e22c4bf9ce9d2a1802671acb6687da /Zotlabs/Lib/Libsync.php
parentc2a796b6ea4a8af23494e72e6c446ea847bf9627 (diff)
downloadvolse-hubzilla-e80191d4cdadd38978579edf17bf8188d7729c4e.tar.gz
volse-hubzilla-e80191d4cdadd38978579edf17bf8188d7729c4e.tar.bz2
volse-hubzilla-e80191d4cdadd38978579edf17bf8188d7729c4e.zip
fix regression
Diffstat (limited to 'Zotlabs/Lib/Libsync.php')
-rw-r--r--Zotlabs/Lib/Libsync.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Libsync.php b/Zotlabs/Lib/Libsync.php
index 914969d97..9851ce52a 100644
--- a/Zotlabs/Lib/Libsync.php
+++ b/Zotlabs/Lib/Libsync.php
@@ -202,6 +202,8 @@ class Libsync {
$channel = $r[0];
+ $mid = 'sync';
+
$DR->set_name($channel['channel_name'] . ' <' . channel_reddress($channel) . '>');
$max_friends = service_class_fetch($channel['channel_id'], 'total_channels');
@@ -293,8 +295,10 @@ class Libsync {
if (array_key_exists('event_item', $arr) && $arr['event_item'])
sync_items($channel, $arr['event_item'], ((array_key_exists('relocate', $arr)) ? $arr['relocate'] : null));
- if (array_key_exists('item', $arr) && $arr['item'])
+ if (array_key_exists('item', $arr) && $arr['item']) {
sync_items($channel, $arr['item'], ((array_key_exists('relocate', $arr)) ? $arr['relocate'] : null));
+ $mid = $arr['item']['mid'] . '#sync';
+ }
// deprecated, maintaining for a few months for upward compatibility
// this should sync webpages, but the logic is a bit subtle
@@ -740,7 +744,7 @@ class Libsync {
*/
call_hooks('process_channel_sync_delivery', $addon);
- $DR = new DReport(z_root(), $d, $d, 'sync', 'channel sync delivered');
+ $DR = new DReport(z_root(), $d, $d, $mid, 'channel sync processed');
$DR->set_name($channel['channel_name'] . ' <' . channel_reddress($channel) . '>');