{"action":"created","issue":{"url":"https://api.github.com/repos/PHPfox-Official/phpfox-v4-issues/issues/2214","repository_url":"https://api.github.com/repos/PHPfox-Official/phpfox-v4-issues","labels_url":"https://api.github.com/repos/PHPfox-Official/phpfox-v4-issues/issues/2214/labels{/name}","comments_url":"https://api.github.com/repos/PHPfox-Official/phpfox-v4-issues/issues/2214/comments","events_url":"https://api.github.com/repos/PHPfox-Official/phpfox-v4-issues/issues/2214/events","html_url":"https://github.com/PHPfox-Official/phpfox-v4-issues/issues/2214","id":309313462,"number":2214,"title":"Photo API's GET method no longer works in 4.6.0","user":{"login":"kirkkhua","id":5412712,"avatar_url":"https://avatars2.githubusercontent.com/u/5412712?v=4","gravatar_id":"","url":"https://api.github.com/users/kirkkhua","html_url":"https://github.com/kirkkhua","followers_url":"https://api.github.com/users/kirkkhua/followers","following_url":"https://api.github.com/users/kirkkhua/following{/other_user}","gists_url":"https://api.github.com/users/kirkkhua/gists{/gist_id}","starred_url":"https://api.github.com/users/kirkkhua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirkkhua/subscriptions","organizations_url":"https://api.github.com/users/kirkkhua/orgs","repos_url":"https://api.github.com/users/kirkkhua/repos","events_url":"https://api.github.com/users/kirkkhua/events{/privacy}","received_events_url":"https://api.github.com/users/kirkkhua/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-28T10:43:16Z","updated_at":"2018-04-17T07:42:37Z","closed_at":null,"author_association":"NONE","body":"## What happened?\r\nSince version 4.6.0 2 new conditions were added in Photo API (get method) in `/PF.Site/Apps/core-photos/Service/Api.php`, lines 257-262. This lines are blocking requests to Photo API – API returns empty responses:\r\n![photo-api-issue](https://user-images.githubusercontent.com/5412712/38024443-b3c3b704-328d-11e8-842e-22ab470de6f2.jpg)\r\n\r\nwhich is not according to Photo API documentation: https://docs.phpfox.com/display/FOX4DEVDOC/Photo+API\r\n\r\nIssue happened after testing website upgraded from v4.5.2 to v4.6.0.\r\n\r\n## Steps to reproduce:\r\n1. Make a request with correct token to Photo API according to https://docs.phpfox.com/display/FOX4DEVDOC/Photo+API\r\n\r\n## What is expected?\r\nIt's expected to receive responses similar to how they're presented in documentation – not an empty array.\r\n\r\n## Browsers and Devices tested\r\n-\r\n\r\n## Server information\r\n-\r\n\r\n...\r\n\r\n## phpFox version\r\nphpFox 4.6.0\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/PHPfox-Official/phpfox-v4-issues/issues/comments/381882378","html_url":"https://github.com/PHPfox-Official/phpfox-v4-issues/issues/2214#issuecomment-381882378","issue_url":"https://api.github.com/repos/PHPfox-Official/phpfox-v4-issues/issues/2214","id":381882378,"user":{"login":"neil96","id":15936115,"avatar_url":"https://avatars0.githubusercontent.com/u/15936115?v=4","gravatar_id":"","url":"https://api.github.com/users/neil96","html_url":"https://github.com/neil96","followers_url":"https://api.github.com/users/neil96/followers","following_url":"https://api.github.com/users/neil96/following{/other_user}","gists_url":"https://api.github.com/users/neil96/gists{/gist_id}","starred_url":"https://api.github.com/users/neil96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neil96/subscriptions","organizations_url":"https://api.github.com/users/neil96/orgs","repos_url":"https://api.github.com/users/neil96/repos","events_url":"https://api.github.com/users/neil96/events{/privacy}","received_events_url":"https://api.github.com/users/neil96/received_events","type":"User","site_admin":false},"created_at":"2018-04-17T07:42:37Z","updated_at":"2018-04-17T07:42:37Z","author_association":"MEMBER","body":"Restful Api is a separate app, we do not have new build for this app now.\r\n\r\nRegards"}}
{"actor":{"display_login":"neil96"}}