{"action":"opened","issue":{"url":"https://api.github.com/repos/AkikoZ/alfred-web-search-suggest/issues/10","repository_url":"https://api.github.com/repos/AkikoZ/alfred-web-search-suggest","labels_url":"https://api.github.com/repos/AkikoZ/alfred-web-search-suggest/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/AkikoZ/alfred-web-search-suggest/issues/10/comments","events_url":"https://api.github.com/repos/AkikoZ/alfred-web-search-suggest/issues/10/events","html_url":"https://github.com/AkikoZ/alfred-web-search-suggest/issues/10","id":331064157,"node_id":"MDU6SXNzdWUzMzEwNjQxNTc=","number":10,"title":"bug report","user":{"login":"PacmanSun","id":27791042,"node_id":"MDQ6VXNlcjI3NzkxMDQy","avatar_url":"https://avatars2.githubusercontent.com/u/27791042?v=4","gravatar_id":"","url":"https://api.github.com/users/PacmanSun","html_url":"https://github.com/PacmanSun","followers_url":"https://api.github.com/users/PacmanSun/followers","following_url":"https://api.github.com/users/PacmanSun/following{/other_user}","gists_url":"https://api.github.com/users/PacmanSun/gists{/gist_id}","starred_url":"https://api.github.com/users/PacmanSun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PacmanSun/subscriptions","organizations_url":"https://api.github.com/users/PacmanSun/orgs","repos_url":"https://api.github.com/users/PacmanSun/repos","events_url":"https://api.github.com/users/PacmanSun/events{/privacy}","received_events_url":"https://api.github.com/users/PacmanSun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-11T06:50:17Z","updated_at":"2018-06-11T06:50:17Z","closed_at":null,"author_association":"NONE","body":"When I test it,I found the zhihu-search-suggest get a problem.\r\nThe Alfred debug log is:\r\n`[2018-06-11 14:30:48][input.scriptfilter] Queuing argument '栋'\r\n[2018-06-11 14:30:49][input.scriptfilter] Script with argument '(null)' finished\r\n[2018-06-11 14:30:49][input.scriptfilter] Warning: Invalid argument supplied for foreach() in /Users/sunli/Alfred/Alfred.alfredpreferences/workflows/user.workflow.0328F3B6-3FDF-4661-9B58-A3C1E4ED1153/zhihu.php on line 20\r\n{\"items\":[]}\r\n[2018-06-11 14:30:49][ERROR: input.scriptfilter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON:\r\nWarning: Invalid argument supplied for foreach() in /Users/sunli/Alfred/Alfred.alfredpreferences/workflows/user.workflow.0328F3B6-3FDF-4661-9B58-A3C1E4ED1153/zhihu.php on line 20\r\n{\"items\":[]}`\r\n\r\nI try to modify the code in \"zhihu.php\" line 17 to \"$json = json_decode($response)[0];\"\r\nAnd the problem seem to be solved.\r\nBut I'm not a browser side engineer,so I can't confirm does it really work, pls check it."}}
{"actor":{"display_login":"PacmanSun"}}