diff options
author | Mario <mario@mariovavti.com> | 2022-02-08 14:09:54 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-02-08 14:09:54 +0000 |
commit | a8d87af41844c8598a9ef58a8f900831d1f7ea03 (patch) | |
tree | 9e58d5163bf27097c7dadd3747875b3eea4455bb /Zotlabs/Lib/ActivityStreams.php | |
parent | a0e8e40f1c9b60afd901091df792cafcc943a0a4 (diff) | |
download | volse-hubzilla-a8d87af41844c8598a9ef58a8f900831d1f7ea03.tar.gz volse-hubzilla-a8d87af41844c8598a9ef58a8f900831d1f7ea03.tar.bz2 volse-hubzilla-a8d87af41844c8598a9ef58a8f900831d1f7ea03.zip |
to reduce overall network fetches cache actors in Activity::fetch() and fetch the ldsig creator with get_actor() instead of get_compound_property() so that it will check the cache before actually fetching
Diffstat (limited to 'Zotlabs/Lib/ActivityStreams.php')
-rw-r--r-- | Zotlabs/Lib/ActivityStreams.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/ActivityStreams.php b/Zotlabs/Lib/ActivityStreams.php index b86203a34..275f6eff4 100644 --- a/Zotlabs/Lib/ActivityStreams.php +++ b/Zotlabs/Lib/ActivityStreams.php @@ -92,7 +92,7 @@ class ActivityStreams { $this->ldsig = $this->get_compound_property('signature'); if ($this->ldsig) { - $this->signer = $this->get_compound_property('creator', $this->ldsig); + $this->signer = $this->get_actor('creator', $this->ldsig); if ($this->signer && is_array($this->signer) && array_key_exists('publicKey', $this->signer) && is_array($this->signer['publicKey']) && $this->signer['publicKey']['publicKeyPem']) { $this->sigok = LDSignatures::verify($this->data, $this->signer['publicKey']['publicKeyPem']); } |