aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/ActivityStreams.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-11 18:56:17 -0700
committerzotlabs <mike@macgirvin.com>2017-09-11 18:56:17 -0700
commitd4e53bb86fbeff0dd0b4f069f4fa07993ddf9e65 (patch)
tree158e807c244b3e153afbaaaeb328cce604a870c3 /Zotlabs/Lib/ActivityStreams.php
parent471449f539a29fcd8a181aca70510f222b172261 (diff)
downloadvolse-hubzilla-d4e53bb86fbeff0dd0b4f069f4fa07993ddf9e65.tar.gz
volse-hubzilla-d4e53bb86fbeff0dd0b4f069f4fa07993ddf9e65.tar.bz2
volse-hubzilla-d4e53bb86fbeff0dd0b4f069f4fa07993ddf9e65.zip
typo in ldsigs
Diffstat (limited to 'Zotlabs/Lib/ActivityStreams.php')
-rw-r--r--Zotlabs/Lib/ActivityStreams.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/Zotlabs/Lib/ActivityStreams.php b/Zotlabs/Lib/ActivityStreams.php
index 686f4a140..2846ea476 100644
--- a/Zotlabs/Lib/ActivityStreams.php
+++ b/Zotlabs/Lib/ActivityStreams.php
@@ -13,7 +13,9 @@ class ActivityStreams {
public $tgt = null;
public $origin = null;
public $owner = null;
-
+ public $signer = null;
+ public $ldsig = null;
+ public $sigok = false;
public $recips = null;
function __construct($string) {
@@ -32,6 +34,14 @@ class ActivityStreams {
$this->origin = $this->get_compound_property('origin');
$this->recips = $this->collect_recips();
+ $this->ldsig = $this->get_compound_property('signature');
+ if($this->ldsig) {
+ $this->signer = $this->get_compound_property('creator',$this->ldsig);
+ if($this->signer && $this->signer['publicKey'] && $this->signer['publicKey']['publicKeyPem']) {
+ $this->sigok = \Zotlabs\Lib\LDSignatures::verify($this->data,$this->signer['publicKey']['publicKeyPem']);
+ }
+ }
+
if(($this->type === 'Note') && (! $this->obj)) {
$this->obj = $this->data;
$this->type = 'Create';