浏览代码

Update ap helpers, fix duplicate entry bug

Daniel Supernault 2 年之前
父节点
当前提交
85cfa1ba9a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/Util/ActivityPub/Helpers.php

+ 2 - 2
app/Util/ActivityPub/Helpers.php

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