diff options
-rw-r--r-- | Zotlabs/Lib/Activity.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 296129ea2..8313db006 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -3552,12 +3552,22 @@ class Activity { } foreach ($actor['tag'] as $t) { + // TODO: implement FEP-fb2a at the sending side and deprecate PropertyValue if ((isset($t['type']) && $t['type'] === 'PropertyValue') && (isset($t['name']) && $t['name'] === 'Protocol') && (isset($t['value']) && in_array($t['value'], ['zot6', 'activitypub', 'diaspora'])) ) { $ret[] = $t['value']; } + + // FEP-fb2a - actor metadata + if ((isset($t['type']) && $t['type'] === 'Note') && + (isset($t['name']) && $t['name'] === 'Protocols') && + (isset($t['content']) && (str_contains($t['content'], 'zot6') || str_contains($t['content'], 'activitypub') || str_contains($t['content'], 'diaspora'))) + ) { + $ret[] = array_map('trim', explode(',', $t['content'])); + } + } return $ret; |