Procházet zdrojové kódy

Update ap helpers, fix duplicate entry bug

Daniel Supernault před 2 roky
rodič
revize
85cfa1ba9a
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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,