diff --git a/src/application/controller/api/post/get.php b/src/application/controller/api/post/get.php index ff196aa..0e7020e 100644 --- a/src/application/controller/api/post/get.php +++ b/src/application/controller/api/post/get.php @@ -8,7 +8,7 @@ $response = [ if (isset($_SESSION['userName'])) { - $userNames = isset($_POST['userName']) && Filter::userName($_POST['userName']) ? [$_POST['userName']] : $_twister->getFollowing($_SESSION['userName']); + $userNames = isset($_GET['userName']) && $_GET['userName'] ? [Filter::userName($_GET['userName'])] : $_twister->getFollowing($_SESSION['userName']); if ($result = $_twister->getPosts($userNames, APPLICATION_MAX_POST_FEED)) { diff --git a/src/public/js/module/feed.js b/src/public/js/module/feed.js index 805dce7..3a276df 100644 --- a/src/public/js/module/feed.js +++ b/src/public/js/module/feed.js @@ -100,7 +100,7 @@ var ModuleFeed = { load: function(feed, reFresh) { $.ajax({ url: 'api/post/get', - type: 'POST', + type: 'GET', data: { userName: $(feed).data('username') },