Skip to content

Commit

Permalink
Update ap helpers, fix duplicate entry bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed Nov 18, 2022
1 parent 078966e commit 85cfa1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Util/ActivityPub/Helpers.php
Expand Up @@ -742,10 +742,10 @@ public static function profileUpdateOrCreate($url)
[
'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,
Expand Down

0 comments on commit 85cfa1b

Please sign in to comment.