]> git.mxchange.org Git - friendica.git/commitdiff
Some more standards
authorMichael <heluecht@pirati.ca>
Mon, 13 Feb 2023 23:57:39 +0000 (23:57 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 13 Feb 2023 23:57:39 +0000 (23:57 +0000)
src/Protocol/ActivityPub/ClientToServer.php

index 17de28c51ab1aa0192e55c7b86258d96f659cf0f..7c0919f636911342ed0e86765fc165de7fd1c6e6 100644 (file)
@@ -336,7 +336,7 @@ class ClientToServer
                                $permissionSets = DI::permissionSet()->selectByContactId($requester_id, $owner['uid']);
                                if (!empty($permissionSets)) {
                                        $condition = ['psid' => array_merge($permissionSets->column('id'),
-                                                       [DI::permissionSet()->selectPublicForUser($owner['uid'])])];
+                                               [DI::permissionSet()->selectPublicForUser($owner['uid'])])];
                                }
                        }
                }
@@ -361,15 +361,24 @@ class ClientToServer
        {
                $owner = User::getOwnerDataById($uid);
 
-               $condition = ['gravity' => [Item::GRAVITY_PARENT, Item::GRAVITY_COMMENT], 'network' => [Protocol::ACTIVITYPUB, Protocol::DFRN], 'uid' => $uid];
+               $condition = [
+                       'gravity' => [Item::GRAVITY_PARENT, Item::GRAVITY_COMMENT],
+                       'network' => [Protocol::ACTIVITYPUB, Protocol::DFRN],
+                       'uid'     => $uid
+               ];
 
                return self::getCollection($condition, DI::baseUrl() . '/inbox/' . $owner['nickname'], $page, $max_id, $uid, null);
        }
 
        public static function getPublicInbox(int $uid, int $page = null, int $max_id = null)
        {
-               $condition = ['gravity' => [Item::GRAVITY_PARENT, Item::GRAVITY_COMMENT], 'private' => Item::PUBLIC,
-                       'network' => [Protocol::ACTIVITYPUB, Protocol::DFRN], 'author-blocked' => false, 'author-hidden' => false];
+               $condition = [
+                       'gravity'        => [Item::GRAVITY_PARENT, Item::GRAVITY_COMMENT],
+                       'private'        => Item::PUBLIC,
+                       'network'        => [Protocol::ACTIVITYPUB, Protocol::DFRN],
+                       'author-blocked' => false,
+                       'author-hidden'  => false
+               ];
 
                return self::getCollection($condition, DI::baseUrl() . '/inbox', $page, $max_id, $uid, null);
        }