mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-22 13:03:16 +00:00
Update AP Helpers, consume actor indexable
attribute
This commit is contained in:
parent
fc24630eba
commit
fbdcdd9dbc
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
]
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue