Explorar o código

Update ap helpers, move remote_url constraint

Daniel Supernault %!s(int64=2) %!d(string=hai) anos
pai
achega
acd8f5bb49
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Util/ActivityPub/Helpers.php

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

@@ -754,11 +754,11 @@ class Helpers {
 				[
 					'domain' => strtolower($domain),
 					'username' => Purify::clean($webfinger),
-					'remote_url' => $res['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,
 					'sharedInbox' => isset($res['endpoints']) && isset($res['endpoints']['sharedInbox']) ? $res['endpoints']['sharedInbox'] : null,