Loading Controllers/api/v2/suggestions.php +7 −0 Original line number Original line Diff line number Diff line Loading @@ -16,6 +16,13 @@ class suggestions implements Interfaces\Api $type = $pages[0] ?? 'user'; $type = $pages[0] ?? 'user'; $loggedInUser = Core\Session::getLoggedinUser(); $loggedInUser = Core\Session::getLoggedinUser(); if (!$loggedInUser) { return Factory::response([ 'status' => 'error', 'message' => 'You must be logged in to receive suggestions', ]); } if ($loggedInUser->getSubscriptionsCount() >= 5000) { if ($loggedInUser->getSubscriptionsCount() >= 5000) { return Factory::response([ return Factory::response([ 'status' => 'error', 'status' => 'error', Loading Loading
Controllers/api/v2/suggestions.php +7 −0 Original line number Original line Diff line number Diff line Loading @@ -16,6 +16,13 @@ class suggestions implements Interfaces\Api $type = $pages[0] ?? 'user'; $type = $pages[0] ?? 'user'; $loggedInUser = Core\Session::getLoggedinUser(); $loggedInUser = Core\Session::getLoggedinUser(); if (!$loggedInUser) { return Factory::response([ 'status' => 'error', 'message' => 'You must be logged in to receive suggestions', ]); } if ($loggedInUser->getSubscriptionsCount() >= 5000) { if ($loggedInUser->getSubscriptionsCount() >= 5000) { return Factory::response([ return Factory::response([ 'status' => 'error', 'status' => 'error', Loading