Update ap helpers, fix duplicate entry bug

This commit is contained in:
Daniel Supernault 2022-11-17 20:30:41 -07:00
parent 078966edb8
commit 85cfa1ba9a
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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,