]> git.mxchange.org Git - friendica.git/commitdiff
Return the actor, not the array
authorMichael <heluecht@pirati.ca>
Tue, 24 May 2022 08:02:55 +0000 (08:02 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 24 May 2022 08:02:55 +0000 (08:02 +0000)
src/Protocol/ActivityPub/Delivery.php

index 6f9272be0842a00775181caee2e345010fbc5600..c959d8c615bd2f6058888ff1f4e631627cfd0b82 100644 (file)
@@ -179,7 +179,8 @@ class Delivery
         */
        private static function fetchActorForRelayInbox(string $inbox): string
        {
-               return DBA::selectFirst('apcontact', ['url'], ['sharedinbox' => $inbox, 'type' => 'Application']) ?: '';
+               $apcontact = DBA::selectFirst('apcontact', ['url'], ['sharedinbox' => $inbox, 'type' => 'Application']);
+               return $apcontact['url'] ?? '';
        }
 
        /**