From 219b258a5488fbec168125449e08ea5ea0852a79 Mon Sep 17 00:00:00 2001 From: Artur Weigandt Date: Mon, 18 Nov 2024 08:35:45 +0100 Subject: [PATCH] Update src/Protocol/ActivityPub/ClientToServer.php Co-authored-by: Hypolite Petovan --- src/Protocol/ActivityPub/ClientToServer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocol/ActivityPub/ClientToServer.php b/src/Protocol/ActivityPub/ClientToServer.php index d812dacd48..65d4a77d21 100644 --- a/src/Protocol/ActivityPub/ClientToServer.php +++ b/src/Protocol/ActivityPub/ClientToServer.php @@ -323,7 +323,7 @@ class ClientToServer $requester_id = Contact::getIdForURL($requester, $owner['uid']); if (!empty($requester_id)) { $permissionSets = DI::permissionSet()->selectByContactId($requester_id, $owner['uid']); - if ($permissionSets->getTotalCount() > 0) { + if (count($permissionSets)) { $condition = ['psid' => array_merge($permissionSets->column('id'), [DI::permissionSet()->selectPublicForUser($owner['uid'])])]; }