1
0
Fork 0
forked from mirror/pixelfed

Update AP Helpers, consume actor indexable attribute

This commit is contained in:
Daniel Supernault 2023-08-24 23:36:50 -06:00
parent fc24630eba
commit fbdcdd9dbc
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -276,7 +276,7 @@ class Helpers {
}
if(is_array($val)) {
return !empty($val) ? $val[0] : null;
return !empty($val) ? head($val) : null;
}
return null;
@ -785,6 +785,7 @@ class Helpers {
'inbox_url' => $res['inbox'],
'outbox_url' => isset($res['outbox']) ? $res['outbox'] : null,
'public_key' => $res['publicKey']['publicKeyPem'],
'indexable' => isset($res['indexable']) && is_bool($res['indexable']) ? $res['indexable'] : false,
]
);