aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-11-09 13:05:48 +0000
committerMario <mario@mariovavti.com>2022-11-09 13:05:48 +0000
commite9b786d5e8fbf288db5e14dc8f2804e9d7b4f94a (patch)
tree660a28b76298fc1e0c2fa1fd790514e6819f4e99
parentad9fb411f69a5863deaec22c78c3f79e8adfc987 (diff)
downloadvolse-hubzilla-e9b786d5e8fbf288db5e14dc8f2804e9d7b4f94a.tar.gz
volse-hubzilla-e9b786d5e8fbf288db5e14dc8f2804e9d7b4f94a.tar.bz2
volse-hubzilla-e9b786d5e8fbf288db5e14dc8f2804e9d7b4f94a.zip
ƃwrong array key
-rw-r--r--Zotlabs/Lib/Libsync.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/Zotlabs/Lib/Libsync.php b/Zotlabs/Lib/Libsync.php
index 9851ce52a..09b81dc83 100644
--- a/Zotlabs/Lib/Libsync.php
+++ b/Zotlabs/Lib/Libsync.php
@@ -184,6 +184,8 @@ class Libsync {
require_once('include/import.php');
+hz_syslog(print_r($arr, true));
+
$result = [];
$keychange = ((array_key_exists('keychange', $arr)) ? true : false);
@@ -192,7 +194,10 @@ class Libsync {
dbesc($sender)
);
- $DR = new DReport(z_root(), $sender, $d, 'sync');
+ $mid = 'sync';
+
+
+ $DR = new DReport(z_root(), $sender, $d, $mid);
if (!$r) {
$DR->update('recipient not found');
@@ -202,7 +207,6 @@ class Libsync {
$channel = $r[0];
- $mid = 'sync';
$DR->set_name($channel['channel_name'] . ' <' . channel_reddress($channel) . '>');
@@ -297,7 +301,7 @@ class Libsync {
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';
+ $mid = $arr['item'][0]['message_id'] . '#sync';
}
// deprecated, maintaining for a few months for upward compatibility
@@ -750,7 +754,6 @@ class Libsync {
$result[] = $DR->get();
}
-
return $result;
}