aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2022-01-31 08:46:12 +0100
committerMario Vavti <mario@mariovavti.com>2022-01-31 08:46:12 +0100
commitf1822bdfab8a5b997c32faa9c287a3fba1c0729b (patch)
tree8b8e0975c3ac732f24cf641261265cb8c0755ebe /Zotlabs
parentc3428acd801756f03b1827c56621b967e165d0de (diff)
downloadvolse-hubzilla-f1822bdfab8a5b997c32faa9c287a3fba1c0729b.tar.gz
volse-hubzilla-f1822bdfab8a5b997c32faa9c287a3fba1c0729b.tar.bz2
volse-hubzilla-f1822bdfab8a5b997c32faa9c287a3fba1c0729b.zip
add the signature
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Daemon/Notifier.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zotlabs/Daemon/Notifier.php b/Zotlabs/Daemon/Notifier.php
index 7964621c7..8aee08fe6 100644
--- a/Zotlabs/Daemon/Notifier.php
+++ b/Zotlabs/Daemon/Notifier.php
@@ -5,6 +5,7 @@ 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');
@@ -336,12 +337,14 @@ 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);
}
logger('target_item: ' . print_r($target_item, true), LOGGER_DEBUG);