aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2025-07-06 18:06:28 +0000
committerMario <mario@mariovavti.com>2025-07-06 18:06:28 +0000
commit222b74ec05fdae22b6c5955ef51455fc208bf23c (patch)
tree8458a31d2c819eeac5bcd8193731f85dbcf2cdbe
parente6c8c477218d6ae2785e18020e866463d231fe21 (diff)
downloadvolse-hubzilla-222b74ec05fdae22b6c5955ef51455fc208bf23c.tar.gz
volse-hubzilla-222b74ec05fdae22b6c5955ef51455fc208bf23c.tar.bz2
volse-hubzilla-222b74ec05fdae22b6c5955ef51455fc208bf23c.zip
extend get_actor_protocols() to also check fep-fb2a actor metadata
-rw-r--r--Zotlabs/Lib/Activity.php10
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;