Loading Controllers/api/v2/feeds/channel.php +3 −0 Original line number Original line Diff line number Diff line Loading @@ -26,6 +26,7 @@ class channel implements Interfaces\Api // // $container_guid = $pages[0] ?? null; $container_guid = $pages[0] ?? null; $owner_guid = null; if (!$container_guid) { if (!$container_guid) { return Factory::response([ return Factory::response([ Loading Loading @@ -60,6 +61,7 @@ class channel implements Interfaces\Api case 'groups': case 'groups': $type = 'group'; $type = 'group'; $container_guid = null; $container_guid = null; $owner_guid = $pages[0]; break; break; case 'all': case 'all': $type = 'all'; $type = 'all'; Loading Loading @@ -128,6 +130,7 @@ class channel implements Interfaces\Api $opts = [ $opts = [ 'cache_key' => $currentUser ? $currentUser->guid : null, 'cache_key' => $currentUser ? $currentUser->guid : null, 'container_guid' => $container_guid, 'container_guid' => $container_guid, 'owner_guid' => $owner_guid, 'access_id' => $isOwner && !$forcePublic ? [0, 1, 2, $container_guid] : [2, $container_guid], 'access_id' => $isOwner && !$forcePublic ? [0, 1, 2, $container_guid] : [2, $container_guid], 'custom_type' => $custom_type, 'custom_type' => $custom_type, 'limit' => $limit, 'limit' => $limit, Loading Loading
Controllers/api/v2/feeds/channel.php +3 −0 Original line number Original line Diff line number Diff line Loading @@ -26,6 +26,7 @@ class channel implements Interfaces\Api // // $container_guid = $pages[0] ?? null; $container_guid = $pages[0] ?? null; $owner_guid = null; if (!$container_guid) { if (!$container_guid) { return Factory::response([ return Factory::response([ Loading Loading @@ -60,6 +61,7 @@ class channel implements Interfaces\Api case 'groups': case 'groups': $type = 'group'; $type = 'group'; $container_guid = null; $container_guid = null; $owner_guid = $pages[0]; break; break; case 'all': case 'all': $type = 'all'; $type = 'all'; Loading Loading @@ -128,6 +130,7 @@ class channel implements Interfaces\Api $opts = [ $opts = [ 'cache_key' => $currentUser ? $currentUser->guid : null, 'cache_key' => $currentUser ? $currentUser->guid : null, 'container_guid' => $container_guid, 'container_guid' => $container_guid, 'owner_guid' => $owner_guid, 'access_id' => $isOwner && !$forcePublic ? [0, 1, 2, $container_guid] : [2, $container_guid], 'access_id' => $isOwner && !$forcePublic ? [0, 1, 2, $container_guid] : [2, $container_guid], 'custom_type' => $custom_type, 'custom_type' => $custom_type, 'limit' => $limit, 'limit' => $limit, Loading