{"action":"created","issue":{"url":"https://api.github.com/repos/joomlaworks/k2/issues/248","labels_url":"https://api.github.com/repos/joomlaworks/k2/issues/248/labels{/name}","comments_url":"https://api.github.com/repos/joomlaworks/k2/issues/248/comments","events_url":"https://api.github.com/repos/joomlaworks/k2/issues/248/events","html_url":"https://github.com/joomlaworks/k2/issues/248","id":101770318,"number":248,"title":"When getting item by json, the item hits count won't increase","user":{"login":"newjie","id":12814040,"avatar_url":"https://avatars.githubusercontent.com/u/12814040?v=3","gravatar_id":"","url":"https://api.github.com/users/newjie","html_url":"https://github.com/newjie","followers_url":"https://api.github.com/users/newjie/followers","following_url":"https://api.github.com/users/newjie/following{/other_user}","gists_url":"https://api.github.com/users/newjie/gists{/gist_id}","starred_url":"https://api.github.com/users/newjie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newjie/subscriptions","organizations_url":"https://api.github.com/users/newjie/orgs","repos_url":"https://api.github.com/users/newjie/repos","events_url":"https://api.github.com/users/newjie/events{/privacy}","received_events_url":"https://api.github.com/users/newjie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-18T23:10:37Z","updated_at":"2015-08-25T10:38:59Z","closed_at":null,"body":"These two lines are found in `com_k2\\views\\item\\view.html.php` line 134\r\n\r\n    // Increase hits counter\r\n    $model->hit($item->id);\r\n\r\nwhich I believe increases the item hits count when the item is displayed in a normal way. But in ·com_k2\\views\\item\\view.json.php·, there are no such lines. "},"comment":{"url":"https://api.github.com/repos/joomlaworks/k2/issues/comments/134551065","html_url":"https://github.com/joomlaworks/k2/issues/248#issuecomment-134551065","issue_url":"https://api.github.com/repos/joomlaworks/k2/issues/248","id":134551065,"user":{"login":"kavadas","id":651257,"avatar_url":"https://avatars.githubusercontent.com/u/651257?v=3","gravatar_id":"","url":"https://api.github.com/users/kavadas","html_url":"https://github.com/kavadas","followers_url":"https://api.github.com/users/kavadas/followers","following_url":"https://api.github.com/users/kavadas/following{/other_user}","gists_url":"https://api.github.com/users/kavadas/gists{/gist_id}","starred_url":"https://api.github.com/users/kavadas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kavadas/subscriptions","organizations_url":"https://api.github.com/users/kavadas/orgs","repos_url":"https://api.github.com/users/kavadas/repos","events_url":"https://api.github.com/users/kavadas/events{/privacy}","received_events_url":"https://api.github.com/users/kavadas/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T10:38:59Z","updated_at":"2015-08-25T10:38:59Z","body":"Hi,\r\n\r\nThis is the intended behavior. We do not want to increase the pages view counter when the item is accessed through the JSON API."}}