aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-01-10 13:33:57 +0000
committerMario <mario@mariovavti.com>2024-01-10 13:33:57 +0000
commit58593d7da6a893e681b7c64fdf21a02c93dfa0d0 (patch)
tree9da45b10745d41f4fe66afff9c27b87589ce5e91 /Zotlabs/Daemon
parent4aa29db7aac6c389a1908a53bce2ec36d7f94ee1 (diff)
downloadvolse-hubzilla-58593d7da6a893e681b7c64fdf21a02c93dfa0d0.tar.gz
volse-hubzilla-58593d7da6a893e681b7c64fdf21a02c93dfa0d0.tar.bz2
volse-hubzilla-58593d7da6a893e681b7c64fdf21a02c93dfa0d0.zip
prepare outbound fep-8b32 (object integrity) but do not enable yet since the additional context seems to break ldsig for some reason, introduce Activity::build_packet() and Activity::ap_context() to reduce code duplication, implement fep-2c59 (webfinger) and some cleanup
Diffstat (limited to 'Zotlabs/Daemon')
-rw-r--r--Zotlabs/Daemon/Notifier.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/Zotlabs/Daemon/Notifier.php b/Zotlabs/Daemon/Notifier.php
index 4b74a7ba9..d1c0e4ec8 100644
--- a/Zotlabs/Daemon/Notifier.php
+++ b/Zotlabs/Daemon/Notifier.php
@@ -5,7 +5,6 @@ namespace Zotlabs\Daemon;
use Zotlabs\Lib\Libzot;
use Zotlabs\Lib\Activity;
use Zotlabs\Lib\Queue;
-use Zotlabs\Lib\LDSignatures;
require_once('include/html2plain.php');
require_once('include/conversation.php');
@@ -342,14 +341,7 @@ class Notifier {
self::$encoded_item = json_decode($m, true);
}
else {
-
- self::$encoded_item = array_merge(['@context' => [
- ACTIVITYSTREAMS_JSONLD_REV,
- 'https://w3id.org/security/v1',
- z_root() . ZOT_APSCHEMA_REV
- ]], Activity::encode_activity($target_item)
- );
- self::$encoded_item['signature'] = LDSignatures::sign(self::$encoded_item, self::$channel);
+ self::$encoded_item = Activity::build_packet(Activity::encode_activity($target_item), self::$channel, false);
}
logger('target_item: ' . print_r($target_item, true), LOGGER_DEBUG);