diff options
author | Mario <mario@mariovavti.com> | 2024-01-13 20:45:32 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-01-13 20:45:32 +0000 |
commit | fadb0a5bf24199475f01f893c8892f5bba495bab (patch) | |
tree | 0f34382c43b262423930e1be9f6f1b465230581b /Zotlabs/Lib | |
parent | fa7aa6cedb83279252d1e26bb58227a6f99df9ed (diff) | |
download | volse-hubzilla-fadb0a5bf24199475f01f893c8892f5bba495bab.tar.gz volse-hubzilla-fadb0a5bf24199475f01f893c8892f5bba495bab.tar.bz2 volse-hubzilla-fadb0a5bf24199475f01f893c8892f5bba495bab.zip |
check for assertionMethod
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r-- | Zotlabs/Lib/Activity.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 6c680c56e..3da6e6e92 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -1757,12 +1757,14 @@ class Activity { } $epubkey = ''; - foreach($person_obj['assertionMethod'] as $am) { - if ($person_obj['id'] === $am['controller'] && - $am['type'] === 'Multikey' && - str_starts_with($am['publicKeyMultibase'], 'z6Mk') - ) { - $epubkey = $person_obj['assertionMethod']['publicKeyMultibase']; + if (isset($person_obj['assertionMethod'])) { + foreach($person_obj['assertionMethod'] as $am) { + if ($person_obj['id'] === $am['controller'] && + $am['type'] === 'Multikey' && + str_starts_with($am['publicKeyMultibase'], 'z6Mk') + ) { + $epubkey = $person_obj['assertionMethod']['publicKeyMultibase']; + } } } |