{"action":"opened","issue":{"url":"https://api.github.com/repos/WP-API/WP-API/issues/2610","repository_url":"https://api.github.com/repos/WP-API/WP-API","labels_url":"https://api.github.com/repos/WP-API/WP-API/issues/2610/labels{/name}","comments_url":"https://api.github.com/repos/WP-API/WP-API/issues/2610/comments","events_url":"https://api.github.com/repos/WP-API/WP-API/issues/2610/events","html_url":"https://github.com/WP-API/WP-API/issues/2610","id":167191788,"number":2610,"title":"Unable to restrict comments to a specific post id using wordpress api v2","user":{"login":"sktzofrenic","id":11902047,"avatar_url":"https://avatars.githubusercontent.com/u/11902047?v=3","gravatar_id":"","url":"https://api.github.com/users/sktzofrenic","html_url":"https://github.com/sktzofrenic","followers_url":"https://api.github.com/users/sktzofrenic/followers","following_url":"https://api.github.com/users/sktzofrenic/following{/other_user}","gists_url":"https://api.github.com/users/sktzofrenic/gists{/gist_id}","starred_url":"https://api.github.com/users/sktzofrenic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sktzofrenic/subscriptions","organizations_url":"https://api.github.com/users/sktzofrenic/orgs","repos_url":"https://api.github.com/users/sktzofrenic/repos","events_url":"https://api.github.com/users/sktzofrenic/events{/privacy}","received_events_url":"https://api.github.com/users/sktzofrenic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-23T16:30:18Z","updated_at":"2016-07-23T16:30:18Z","closed_at":null,"body":"making the following request returns every single comment from the blog. It is not restricted to the post ID in the query parameters.\r\n\r\nIs this a bug, or am I doing something wrong?\r\n\r\n`http://anawins.com/wp-json/wp/v2/comments/?post=2986`\r\nor\r\n\r\n`http://anawins.com/wp-json/wp/v2/comments?post=2986`\r\nyields:\r\n\r\n```\r\nHTTP/1.1 200 OK\r\nServer: nginx/1.6.3\r\nDate: Sat, 23 Jul 2016 15:47:47 GMT\r\nContent-Type: application/json; charset=UTF-8\r\nTransfer-Encoding: chunked\r\nConnection: keep-alive\r\nVary: Accept-Encoding\r\nX-Powered-By: PHP/5.4.16\r\nVary: Cookie\r\nSet-Cookie: PHPSESSID=96jsfcdeg8ksnraq5aa3o1a3o7; path=/\r\nExpires: Thu, 19 Nov 1981 08:52:00 GMT\r\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\r\nPragma: no-cache\r\nSet-Cookie: oculus-unknown-switcher=1; expires=Sun, 23-Jul-2017 15:47:46 GMT\r\nSet-Cookie: oculus-unknown-switcher=1; expires=Sun, 23-Jul-2017 15:47:46 GMT\r\nSet-Cookie: wp_woocommerce_session_d65537f626aa4d41876f80145673898a=a4bbe5c1e08f80685e3bf383595f1ce4%7C%7C1469461666%7C%7C1469458066%7C%7C92bf547bd7e641385bb561b739e1c87a; expires=Mon, 25-Jul-2016 15:47:46 GMT; path=/\r\nX-Content-Type-Options: nosniff\r\nAccess-Control-Expose-Headers: X-WP-Total, X-WP-TotalPages\r\nAccess-Control-Allow-Headers: Authorization\r\nX-WP-Total: 2549\r\nX-WP-TotalPages: 255\r\nLink: <http://anawins.com/wp-json/wp/v2/comments?q=%2Fwp-json%2Fwp%2Fv2%2Fcomments%2F%3Fpost%3D2986&context=view&page=2>; rel=\"next\"\r\nAllow: GET\r\n```\r\n\r\nNotice how 2500 comments are coming back, even with that post ID. Should only be five comments. \r\n"}}
{"actor":{"display_login":"sktzofrenic"}}