mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:40:16 +00:00
Update src/Protocol/ActivityPub/ClientToServer.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
24f75cd618
commit
219b258a54
1 changed files with 1 additions and 1 deletions
|
@ -323,7 +323,7 @@ class ClientToServer
|
||||||
$requester_id = Contact::getIdForURL($requester, $owner['uid']);
|
$requester_id = Contact::getIdForURL($requester, $owner['uid']);
|
||||||
if (!empty($requester_id)) {
|
if (!empty($requester_id)) {
|
||||||
$permissionSets = DI::permissionSet()->selectByContactId($requester_id, $owner['uid']);
|
$permissionSets = DI::permissionSet()->selectByContactId($requester_id, $owner['uid']);
|
||||||
if ($permissionSets->getTotalCount() > 0) {
|
if (count($permissionSets)) {
|
||||||
$condition = ['psid' => array_merge($permissionSets->column('id'),
|
$condition = ['psid' => array_merge($permissionSets->column('id'),
|
||||||
[DI::permissionSet()->selectPublicForUser($owner['uid'])])];
|
[DI::permissionSet()->selectPublicForUser($owner['uid'])])];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue