From: Michael Date: Tue, 24 May 2022 08:02:55 +0000 (+0000) Subject: Return the actor, not the array X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e68ff3b3bb93ca5d5e5b0ccf6022e1ff9aa19d48;p=friendica.git Return the actor, not the array --- diff --git a/src/Protocol/ActivityPub/Delivery.php b/src/Protocol/ActivityPub/Delivery.php index 6f9272be08..c959d8c615 100644 --- a/src/Protocol/ActivityPub/Delivery.php +++ b/src/Protocol/ActivityPub/Delivery.php @@ -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'] ?? ''; } /**