aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Zotlabs/Lib/Activity.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 3da6e6e92..f59992cc3 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -1758,6 +1758,10 @@ class Activity {
$epubkey = '';
if (isset($person_obj['assertionMethod'])) {
+ if (!isset($person_obj['assertionMethod'][0])) {
+ $person_obj['assertionMethod'] = [$person_obj['assertionMethod']];
+ }
+
foreach($person_obj['assertionMethod'] as $am) {
if ($person_obj['id'] === $am['controller'] &&
$am['type'] === 'Multikey' &&