aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Notifier.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-04-15 08:21:07 +0000
committerMario <mario@mariovavti.com>2020-04-15 08:21:07 +0000
commit9d0f71bfcbc0d1080a9f93590118046d326cae70 (patch)
tree0235e374b654774cbcb48e2a430f23b41ebe5aa3 /Zotlabs/Daemon/Notifier.php
parent6de823b532fc526a321e6b2b4df2cdd6175b7eb7 (diff)
downloadvolse-hubzilla-9d0f71bfcbc0d1080a9f93590118046d326cae70.tar.gz
volse-hubzilla-9d0f71bfcbc0d1080a9f93590118046d326cae70.tar.bz2
volse-hubzilla-9d0f71bfcbc0d1080a9f93590118046d326cae70.zip
keychange and request packets via zot6
Diffstat (limited to 'Zotlabs/Daemon/Notifier.php')
-rw-r--r--Zotlabs/Daemon/Notifier.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/Zotlabs/Daemon/Notifier.php b/Zotlabs/Daemon/Notifier.php
index d66079216..d3b0a6b14 100644
--- a/Zotlabs/Daemon/Notifier.php
+++ b/Zotlabs/Daemon/Notifier.php
@@ -672,15 +672,17 @@ class Notifier {
$packet = zot_build_packet($channel,$packet_type,(($packet_recips) ? $packet_recips : null));
}
}
- if($packet_type === 'keychange' && $hub['hubloc_network'] === 'zot') {
+ if($packet_type === 'keychange' && $hub['hubloc_network'] === 'zot6') {
$pmsg = get_pconfig($channel['channel_id'],'system','keychange');
- $packet = zot_build_packet($channel,$packet_type,(($packet_recips) ? $packet_recips : null));
+ $packet = Libzot::build_packet($channel, $packet_type, (($packet_recips) ? $packet_recips : null));
+ // $packet = zot_build_packet($channel,$packet_type,(($packet_recips) ? $packet_recips : null));
+
}
- elseif($packet_type === 'request' && $hub['hubloc_network'] === 'zot') {
+ elseif($packet_type === 'request' && $hub['hubloc_network'] === 'zot6') {
$env = (($hub_env && $hub_env[$hub['hubloc_host'] . $hub['hubloc_sitekey']]) ? $hub_env[$hub['hubloc_host'] . $hub['hubloc_sitekey']] : '');
- $packet = zot_build_packet($channel,$packet_type,$env,$hub['hubloc_sitekey'],$hub['site_crypto'],
- $hash, array('message_id' => $request_message_id)
- );
+ $packet = Libzot::build_packet($channel, $packet_type, $env, ['message_id' => $request_message_id], 'activitystreams', $hub['hubloc_sitekey'], $hub['site_crypto']);
+ // $packet = zot_build_packet($channel,$packet_type,$env,$hub['hubloc_sitekey'],$hub['site_crypto'],$hash, array('message_id' => $request_message_id));
+
}
if($packet) {