From e68ff3b3bb93ca5d5e5b0ccf6022e1ff9aa19d48 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 24 May 2022 08:02:55 +0000 Subject: [PATCH] Return the actor, not the array --- src/Protocol/ActivityPub/Delivery.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'] ?? ''; } /**