mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-26 22:40:45 +00:00
Update ap helpers, move remote_url constraint
This commit is contained in:
parent
66aa8bf9de
commit
acd8f5bb49
1 changed files with 1 additions and 1 deletions
|
@ -754,11 +754,11 @@ class Helpers {
|
||||||
[
|
[
|
||||||
'domain' => strtolower($domain),
|
'domain' => strtolower($domain),
|
||||||
'username' => Purify::clean($webfinger),
|
'username' => Purify::clean($webfinger),
|
||||||
'remote_url' => $res['id'],
|
|
||||||
'webfinger' => Purify::clean($webfinger),
|
'webfinger' => Purify::clean($webfinger),
|
||||||
'key_id' => $res['publicKey']['id'],
|
'key_id' => $res['publicKey']['id'],
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
'remote_url' => $res['id'],
|
||||||
'name' => isset($res['name']) ? Purify::clean($res['name']) : 'user',
|
'name' => isset($res['name']) ? Purify::clean($res['name']) : 'user',
|
||||||
'bio' => isset($res['summary']) ? Purify::clean($res['summary']) : null,
|
'bio' => isset($res['summary']) ? Purify::clean($res['summary']) : null,
|
||||||
'sharedInbox' => isset($res['endpoints']) && isset($res['endpoints']['sharedInbox']) ? $res['endpoints']['sharedInbox'] : null,
|
'sharedInbox' => isset($res['endpoints']) && isset($res['endpoints']['sharedInbox']) ? $res['endpoints']['sharedInbox'] : null,
|
||||||
|
|
Loading…
Reference in a new issue