{"action":"created","comment":{"url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/pulls/comments/66010611","id":66010611,"diff_hunk":"@@ -986,7 +986,7 @@ public static function _add_api_error_notice(Exception $e, $token) {\n   private static function _prepare_content($post) {\n     if (function_exists('has_post_thumbnail') && has_post_thumbnail($post)) {\n       // If $post->post_content starts with an <img> tag, do not use the featured image\n-      if (strpos($post->post_content, \"<img\") != 0) {\n+      if (strpos($post->post_content, \"<img\") !== 0) {","path":"lib/medium-admin.php","position":5,"original_position":5,"commit_id":"73ce1773c46d9116c847cc8a006b340fd75b46da","original_commit_id":"73ce1773c46d9116c847cc8a006b340fd75b46da","user":{"login":"huckphin","id":648121,"avatar_url":"https://avatars.githubusercontent.com/u/648121?v=3","gravatar_id":"","url":"https://api.github.com/users/huckphin","html_url":"https://github.com/huckphin","followers_url":"https://api.github.com/users/huckphin/followers","following_url":"https://api.github.com/users/huckphin/following{/other_user}","gists_url":"https://api.github.com/users/huckphin/gists{/gist_id}","starred_url":"https://api.github.com/users/huckphin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huckphin/subscriptions","organizations_url":"https://api.github.com/users/huckphin/orgs","repos_url":"https://api.github.com/users/huckphin/repos","events_url":"https://api.github.com/users/huckphin/events{/privacy}","received_events_url":"https://api.github.com/users/huckphin/received_events","type":"User","site_admin":false},"body":"You got it! That's what happened.","created_at":"2016-06-07T05:05:31Z","updated_at":"2016-06-07T05:05:31Z","html_url":"https://github.com/Medium/medium-wordpress-plugin/pull/98#discussion_r66010611","pull_request_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/pulls/98","_links":{"self":{"href":"https://api.github.com/repos/Medium/medium-wordpress-plugin/pulls/comments/66010611"},"html":{"href":"https://github.com/Medium/medium-wordpress-plugin/pull/98#discussion_r66010611"},"pull_request":{"href":"https://api.github.com/repos/Medium/medium-wordpress-plugin/pulls/98"}}},"pull_request":{"url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/pulls/98","id":72810152,"html_url":"https://github.com/Medium/medium-wordpress-plugin/pull/98","diff_url":"https://github.com/Medium/medium-wordpress-plugin/pull/98.diff","patch_url":"https://github.com/Medium/medium-wordpress-plugin/pull/98.patch","issue_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/issues/98","number":98,"state":"open","locked":false,"title":"Use the not identical operator to check if a post starts with an <img> tag.","user":{"login":"huckphin","id":648121,"avatar_url":"https://avatars.githubusercontent.com/u/648121?v=3","gravatar_id":"","url":"https://api.github.com/users/huckphin","html_url":"https://github.com/huckphin","followers_url":"https://api.github.com/users/huckphin/followers","following_url":"https://api.github.com/users/huckphin/following{/other_user}","gists_url":"https://api.github.com/users/huckphin/gists{/gist_id}","starred_url":"https://api.github.com/users/huckphin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huckphin/subscriptions","organizations_url":"https://api.github.com/users/huckphin/orgs","repos_url":"https://api.github.com/users/huckphin/repos","events_url":"https://api.github.com/users/huckphin/events{/privacy}","received_events_url":"https://api.github.com/users/huckphin/received_events","type":"User","site_admin":false},"body":"Hello @amyquispe, @kylehg, @mikkot, \n\nPlease review the following commits I made in branch 'chad-fix-featured-images'.\n\n73ce1773c46d9116c847cc8a006b340fd75b46da (2016-06-06 20:14:04 -0700)\nUse the not identical operator to check if a post starts with an <img> tag.\nFixes https://github.com/Medium/medium-wordpress-plugin/issues/97\n\nR=@amyquispe\nR=@kylehg\nR=@mikkot","created_at":"2016-06-07T03:16:27Z","updated_at":"2016-06-07T05:05:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"62872b996df61e5ebc6b7e2e43de359bf12b308b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/pulls/98/commits","review_comments_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/pulls/98/comments","review_comment_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/issues/98/comments","statuses_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/statuses/73ce1773c46d9116c847cc8a006b340fd75b46da","head":{"label":"Medium:chad-fix-featured-images","ref":"chad-fix-featured-images","sha":"73ce1773c46d9116c847cc8a006b340fd75b46da","user":{"login":"Medium","id":923954,"avatar_url":"https://avatars.githubusercontent.com/u/923954?v=3","gravatar_id":"","url":"https://api.github.com/users/Medium","html_url":"https://github.com/Medium","followers_url":"https://api.github.com/users/Medium/followers","following_url":"https://api.github.com/users/Medium/following{/other_user}","gists_url":"https://api.github.com/users/Medium/gists{/gist_id}","starred_url":"https://api.github.com/users/Medium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Medium/subscriptions","organizations_url":"https://api.github.com/users/Medium/orgs","repos_url":"https://api.github.com/users/Medium/repos","events_url":"https://api.github.com/users/Medium/events{/privacy}","received_events_url":"https://api.github.com/users/Medium/received_events","type":"Organization","site_admin":false},"repo":{"id":43514675,"name":"medium-wordpress-plugin","full_name":"Medium/medium-wordpress-plugin","owner":{"login":"Medium","id":923954,"avatar_url":"https://avatars.githubusercontent.com/u/923954?v=3","gravatar_id":"","url":"https://api.github.com/users/Medium","html_url":"https://github.com/Medium","followers_url":"https://api.github.com/users/Medium/followers","following_url":"https://api.github.com/users/Medium/following{/other_user}","gists_url":"https://api.github.com/users/Medium/gists{/gist_id}","starred_url":"https://api.github.com/users/Medium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Medium/subscriptions","organizations_url":"https://api.github.com/users/Medium/orgs","repos_url":"https://api.github.com/users/Medium/repos","events_url":"https://api.github.com/users/Medium/events{/privacy}","received_events_url":"https://api.github.com/users/Medium/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Medium/medium-wordpress-plugin","description":"The official WordPress plugin for cross-posting to Medium.","fork":false,"url":"https://api.github.com/repos/Medium/medium-wordpress-plugin","forks_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/forks","keys_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/teams","hooks_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/hooks","issue_events_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/events","assignees_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/tags","blobs_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/languages","stargazers_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/stargazers","contributors_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/contributors","subscribers_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/subscribers","subscription_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/subscription","commits_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/merges","archive_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/downloads","issues_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/labels{/name}","releases_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/deployments","created_at":"2015-10-01T18:51:39Z","updated_at":"2016-06-01T02:21:23Z","pushed_at":"2016-06-07T04:59:11Z","git_url":"git://github.com/Medium/medium-wordpress-plugin.git","ssh_url":"git@github.com:Medium/medium-wordpress-plugin.git","clone_url":"https://github.com/Medium/medium-wordpress-plugin.git","svn_url":"https://github.com/Medium/medium-wordpress-plugin","homepage":"https://medium.com","size":1288,"stargazers_count":125,"watchers_count":125,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":12,"forks":22,"open_issues":12,"watchers":125,"default_branch":"master"}},"base":{"label":"Medium:master","ref":"master","sha":"3082f139226ad4805361a2215a5a357d19391dfb","user":{"login":"Medium","id":923954,"avatar_url":"https://avatars.githubusercontent.com/u/923954?v=3","gravatar_id":"","url":"https://api.github.com/users/Medium","html_url":"https://github.com/Medium","followers_url":"https://api.github.com/users/Medium/followers","following_url":"https://api.github.com/users/Medium/following{/other_user}","gists_url":"https://api.github.com/users/Medium/gists{/gist_id}","starred_url":"https://api.github.com/users/Medium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Medium/subscriptions","organizations_url":"https://api.github.com/users/Medium/orgs","repos_url":"https://api.github.com/users/Medium/repos","events_url":"https://api.github.com/users/Medium/events{/privacy}","received_events_url":"https://api.github.com/users/Medium/received_events","type":"Organization","site_admin":false},"repo":{"id":43514675,"name":"medium-wordpress-plugin","full_name":"Medium/medium-wordpress-plugin","owner":{"login":"Medium","id":923954,"avatar_url":"https://avatars.githubusercontent.com/u/923954?v=3","gravatar_id":"","url":"https://api.github.com/users/Medium","html_url":"https://github.com/Medium","followers_url":"https://api.github.com/users/Medium/followers","following_url":"https://api.github.com/users/Medium/following{/other_user}","gists_url":"https://api.github.com/users/Medium/gists{/gist_id}","starred_url":"https://api.github.com/users/Medium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Medium/subscriptions","organizations_url":"https://api.github.com/users/Medium/orgs","repos_url":"https://api.github.com/users/Medium/repos","events_url":"https://api.github.com/users/Medium/events{/privacy}","received_events_url":"https://api.github.com/users/Medium/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Medium/medium-wordpress-plugin","description":"The official WordPress plugin for cross-posting to Medium.","fork":false,"url":"https://api.github.com/repos/Medium/medium-wordpress-plugin","forks_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/forks","keys_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/teams","hooks_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/hooks","issue_events_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/events","assignees_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/tags","blobs_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/languages","stargazers_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/stargazers","contributors_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/contributors","subscribers_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/subscribers","subscription_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/subscription","commits_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/merges","archive_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/downloads","issues_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/labels{/name}","releases_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/Medium/medium-wordpress-plugin/deployments","created_at":"2015-10-01T18:51:39Z","updated_at":"2016-06-01T02:21:23Z","pushed_at":"2016-06-07T04:59:11Z","git_url":"git://github.com/Medium/medium-wordpress-plugin.git","ssh_url":"git@github.com:Medium/medium-wordpress-plugin.git","clone_url":"https://github.com/Medium/medium-wordpress-plugin.git","svn_url":"https://github.com/Medium/medium-wordpress-plugin","homepage":"https://medium.com","size":1288,"stargazers_count":125,"watchers_count":125,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":12,"forks":22,"open_issues":12,"watchers":125,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Medium/medium-wordpress-plugin/pulls/98"},"html":{"href":"https://github.com/Medium/medium-wordpress-plugin/pull/98"},"issue":{"href":"https://api.github.com/repos/Medium/medium-wordpress-plugin/issues/98"},"comments":{"href":"https://api.github.com/repos/Medium/medium-wordpress-plugin/issues/98/comments"},"review_comments":{"href":"https://api.github.com/repos/Medium/medium-wordpress-plugin/pulls/98/comments"},"review_comment":{"href":"https://api.github.com/repos/Medium/medium-wordpress-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Medium/medium-wordpress-plugin/pulls/98/commits"},"statuses":{"href":"https://api.github.com/repos/Medium/medium-wordpress-plugin/statuses/73ce1773c46d9116c847cc8a006b340fd75b46da"}}}}
{"actor":{"display_login":"huckphin"}}