Update ap helpers, fix duplicate entry bug

pull/3789/head
Daniel Supernault 2 years ago
parent 078966edb8
commit 85cfa1ba9a
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -742,10 +742,10 @@ class Helpers {
[
'domain' => strtolower($domain),
'username' => Purify::clean($webfinger),
'webfinger' => Purify::clean($webfinger),
'key_id' => $res['publicKey']['id'],
],
[
'webfinger' => Purify::clean($webfinger),
'key_id' => $res['publicKey']['id'],
'remote_url' => $res['id'],
'name' => isset($res['name']) ? Purify::clean($res['name']) : 'user',
'bio' => isset($res['summary']) ? Purify::clean($res['summary']) : null,

Loading…
Cancel
Save