{"action":"created","comment":{"url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/comments/84737841","pull_request_review_id":5496391,"id":84737841,"diff_hunk":"@@ -1,27 +1,35 @@\n+import { ajax } from '../../environment';\n+import logo from '../../images/hosts/giphy-logo.png';\n+\n export default {\n \tmoduleID: 'giphy',\n \tname: 'giphy',\n \tdomains: ['giphy.com'],\n-\tlogo: '//giphy.com/static/img/favicon.png',\n-\tdetect: ({ pathname }) => (/^\\/gifs\\/(?:\\w+-)*(.*?)(\\/html5)?$/i).exec(pathname),\n-\thandleLink(href, [, id, isHtml5]) {\n+\tlogo,\n+\tdetect: ({ pathname }) => (/^(?:\\/gifs|\\/media|)\\/(?:\\w+-)*([^/.]*)(\\/html5)?.*$/i).exec(pathname),\n+\tasync handleLink(href, [, id, isHtml5]) {\n+\t\tconst { data } = await ajax({\n+\t\t\turl: `http://api.giphy.com/v1/gifs/${id}?api_key=dc6zaTOxFJmzC`,","path":"lib/modules/hosts/giphy.js","position":15,"original_position":15,"commit_id":"77e7aa3afcd06c91d2c6f8a24897cf114d5f90ff","original_commit_id":"77e7aa3afcd06c91d2c6f8a24897cf114d5f90ff","user":{"login":"erikdesjardins","id":7673145,"avatar_url":"https://avatars.githubusercontent.com/u/7673145?v=3","gravatar_id":"","url":"https://api.github.com/users/erikdesjardins","html_url":"https://github.com/erikdesjardins","followers_url":"https://api.github.com/users/erikdesjardins/followers","following_url":"https://api.github.com/users/erikdesjardins/following{/other_user}","gists_url":"https://api.github.com/users/erikdesjardins/gists{/gist_id}","starred_url":"https://api.github.com/users/erikdesjardins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikdesjardins/subscriptions","organizations_url":"https://api.github.com/users/erikdesjardins/orgs","repos_url":"https://api.github.com/users/erikdesjardins/repos","events_url":"https://api.github.com/users/erikdesjardins/events{/privacy}","received_events_url":"https://api.github.com/users/erikdesjardins/received_events","type":"User","site_admin":false},"body":"`https` please, and we can make the query string a bit cleaner:\r\n\r\n```js\r\nurl: `https://api.giphy.com/v1/gifs/${id}`,\r\ndata: { api_key: 'dc6zaTOxFJmzC' },\r\n```","created_at":"2016-10-24T17:23:51Z","updated_at":"2016-10-24T17:24:39Z","html_url":"https://github.com/honestbleeps/Reddit-Enhancement-Suite/pull/3539#discussion_r84737841","pull_request_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/3539","_links":{"self":{"href":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/comments/84737841"},"html":{"href":"https://github.com/honestbleeps/Reddit-Enhancement-Suite/pull/3539#discussion_r84737841"},"pull_request":{"href":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/3539"}}},"pull_request":{"url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/3539","id":90381014,"html_url":"https://github.com/honestbleeps/Reddit-Enhancement-Suite/pull/3539","diff_url":"https://github.com/honestbleeps/Reddit-Enhancement-Suite/pull/3539.diff","patch_url":"https://github.com/honestbleeps/Reddit-Enhancement-Suite/pull/3539.patch","issue_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/issues/3539","number":3539,"state":"open","locked":false,"title":"Use giphy api to load inline giphy gifs","user":{"login":"dhensche","id":387763,"avatar_url":"https://avatars.githubusercontent.com/u/387763?v=3","gravatar_id":"","url":"https://api.github.com/users/dhensche","html_url":"https://github.com/dhensche","followers_url":"https://api.github.com/users/dhensche/followers","following_url":"https://api.github.com/users/dhensche/following{/other_user}","gists_url":"https://api.github.com/users/dhensche/gists{/gist_id}","starred_url":"https://api.github.com/users/dhensche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhensche/subscriptions","organizations_url":"https://api.github.com/users/dhensche/orgs","repos_url":"https://api.github.com/users/dhensche/repos","events_url":"https://api.github.com/users/dhensche/events{/privacy}","received_events_url":"https://api.github.com/users/dhensche/received_events","type":"User","site_admin":false},"body":"fixes #3005","created_at":"2016-10-21T13:17:14Z","updated_at":"2016-10-24T17:24:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"edaeee444bec3a84cdef4dd2c7e09e67e86f792b","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/milestones/20","html_url":"https://github.com/honestbleeps/Reddit-Enhancement-Suite/milestones/v5.1.0","labels_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/milestones/20/labels","id":1640726,"number":20,"title":"v5.1.0","description":"New features, fixes that didn't make it into v5.0.0.\r\n\r\nDate is arbitrarily set at \"a month and change after v5.0.0\".","creator":{"login":"andytuba","id":455632,"avatar_url":"https://avatars.githubusercontent.com/u/455632?v=3","gravatar_id":"","url":"https://api.github.com/users/andytuba","html_url":"https://github.com/andytuba","followers_url":"https://api.github.com/users/andytuba/followers","following_url":"https://api.github.com/users/andytuba/following{/other_user}","gists_url":"https://api.github.com/users/andytuba/gists{/gist_id}","starred_url":"https://api.github.com/users/andytuba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andytuba/subscriptions","organizations_url":"https://api.github.com/users/andytuba/orgs","repos_url":"https://api.github.com/users/andytuba/repos","events_url":"https://api.github.com/users/andytuba/events{/privacy}","received_events_url":"https://api.github.com/users/andytuba/received_events","type":"User","site_admin":false},"open_issues":45,"closed_issues":23,"state":"open","created_at":"2016-03-12T20:54:18Z","updated_at":"2016-10-24T17:01:47Z","due_on":"2016-10-31T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/3539/commits","review_comments_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/3539/comments","review_comment_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/issues/3539/comments","statuses_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/statuses/77e7aa3afcd06c91d2c6f8a24897cf114d5f90ff","head":{"label":"dhensche:use-giphy-api","ref":"use-giphy-api","sha":"77e7aa3afcd06c91d2c6f8a24897cf114d5f90ff","user":{"login":"dhensche","id":387763,"avatar_url":"https://avatars.githubusercontent.com/u/387763?v=3","gravatar_id":"","url":"https://api.github.com/users/dhensche","html_url":"https://github.com/dhensche","followers_url":"https://api.github.com/users/dhensche/followers","following_url":"https://api.github.com/users/dhensche/following{/other_user}","gists_url":"https://api.github.com/users/dhensche/gists{/gist_id}","starred_url":"https://api.github.com/users/dhensche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhensche/subscriptions","organizations_url":"https://api.github.com/users/dhensche/orgs","repos_url":"https://api.github.com/users/dhensche/repos","events_url":"https://api.github.com/users/dhensche/events{/privacy}","received_events_url":"https://api.github.com/users/dhensche/received_events","type":"User","site_admin":false},"repo":{"id":71397757,"name":"Reddit-Enhancement-Suite","full_name":"dhensche/Reddit-Enhancement-Suite","owner":{"login":"dhensche","id":387763,"avatar_url":"https://avatars.githubusercontent.com/u/387763?v=3","gravatar_id":"","url":"https://api.github.com/users/dhensche","html_url":"https://github.com/dhensche","followers_url":"https://api.github.com/users/dhensche/followers","following_url":"https://api.github.com/users/dhensche/following{/other_user}","gists_url":"https://api.github.com/users/dhensche/gists{/gist_id}","starred_url":"https://api.github.com/users/dhensche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhensche/subscriptions","organizations_url":"https://api.github.com/users/dhensche/orgs","repos_url":"https://api.github.com/users/dhensche/repos","events_url":"https://api.github.com/users/dhensche/events{/privacy}","received_events_url":"https://api.github.com/users/dhensche/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dhensche/Reddit-Enhancement-Suite","description":"Reddit Enhancement Suite","fork":true,"url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite","forks_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/forks","keys_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/teams","hooks_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/hooks","issue_events_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/issues/events{/number}","events_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/events","assignees_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/assignees{/user}","branches_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/branches{/branch}","tags_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/tags","blobs_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/git/refs{/sha}","trees_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/statuses/{sha}","languages_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/languages","stargazers_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/stargazers","contributors_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/contributors","subscribers_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/subscribers","subscription_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/subscription","commits_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/commits{/sha}","git_commits_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/git/commits{/sha}","comments_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/comments{/number}","issue_comment_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/issues/comments{/number}","contents_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/contents/{+path}","compare_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/merges","archive_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/downloads","issues_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/issues{/number}","pulls_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/pulls{/number}","milestones_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/milestones{/number}","notifications_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/labels{/name}","releases_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/releases{/id}","deployments_url":"https://api.github.com/repos/dhensche/Reddit-Enhancement-Suite/deployments","created_at":"2016-10-19T20:45:51Z","updated_at":"2016-10-19T20:45:55Z","pushed_at":"2016-10-23T20:21:34Z","git_url":"git://github.com/dhensche/Reddit-Enhancement-Suite.git","ssh_url":"git@github.com:dhensche/Reddit-Enhancement-Suite.git","clone_url":"https://github.com/dhensche/Reddit-Enhancement-Suite.git","svn_url":"https://github.com/dhensche/Reddit-Enhancement-Suite","homepage":"http://redditenhancementsuite.com","size":24495,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"honestbleeps:master","ref":"master","sha":"c98391bfd17aab239e27688babae2e5dfac71eb3","user":{"login":"honestbleeps","id":323763,"avatar_url":"https://avatars.githubusercontent.com/u/323763?v=3","gravatar_id":"","url":"https://api.github.com/users/honestbleeps","html_url":"https://github.com/honestbleeps","followers_url":"https://api.github.com/users/honestbleeps/followers","following_url":"https://api.github.com/users/honestbleeps/following{/other_user}","gists_url":"https://api.github.com/users/honestbleeps/gists{/gist_id}","starred_url":"https://api.github.com/users/honestbleeps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honestbleeps/subscriptions","organizations_url":"https://api.github.com/users/honestbleeps/orgs","repos_url":"https://api.github.com/users/honestbleeps/repos","events_url":"https://api.github.com/users/honestbleeps/events{/privacy}","received_events_url":"https://api.github.com/users/honestbleeps/received_events","type":"User","site_admin":false},"repo":{"id":2688907,"name":"Reddit-Enhancement-Suite","full_name":"honestbleeps/Reddit-Enhancement-Suite","owner":{"login":"honestbleeps","id":323763,"avatar_url":"https://avatars.githubusercontent.com/u/323763?v=3","gravatar_id":"","url":"https://api.github.com/users/honestbleeps","html_url":"https://github.com/honestbleeps","followers_url":"https://api.github.com/users/honestbleeps/followers","following_url":"https://api.github.com/users/honestbleeps/following{/other_user}","gists_url":"https://api.github.com/users/honestbleeps/gists{/gist_id}","starred_url":"https://api.github.com/users/honestbleeps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honestbleeps/subscriptions","organizations_url":"https://api.github.com/users/honestbleeps/orgs","repos_url":"https://api.github.com/users/honestbleeps/repos","events_url":"https://api.github.com/users/honestbleeps/events{/privacy}","received_events_url":"https://api.github.com/users/honestbleeps/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/honestbleeps/Reddit-Enhancement-Suite","description":"Reddit Enhancement Suite","fork":false,"url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite","forks_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/forks","keys_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/teams","hooks_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/hooks","issue_events_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/issues/events{/number}","events_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/events","assignees_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/assignees{/user}","branches_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/branches{/branch}","tags_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/tags","blobs_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/git/refs{/sha}","trees_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/statuses/{sha}","languages_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/languages","stargazers_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/stargazers","contributors_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/contributors","subscribers_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/subscribers","subscription_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/subscription","commits_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/commits{/sha}","git_commits_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/git/commits{/sha}","comments_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/comments{/number}","issue_comment_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/issues/comments{/number}","contents_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/contents/{+path}","compare_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/merges","archive_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/downloads","issues_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/issues{/number}","pulls_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls{/number}","milestones_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/milestones{/number}","notifications_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/labels{/name}","releases_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/releases{/id}","deployments_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/deployments","created_at":"2011-11-01T16:31:51Z","updated_at":"2016-10-24T07:54:01Z","pushed_at":"2016-10-24T17:01:47Z","git_url":"git://github.com/honestbleeps/Reddit-Enhancement-Suite.git","ssh_url":"git@github.com:honestbleeps/Reddit-Enhancement-Suite.git","clone_url":"https://github.com/honestbleeps/Reddit-Enhancement-Suite.git","svn_url":"https://github.com/honestbleeps/Reddit-Enhancement-Suite","homepage":"http://redditenhancementsuite.com","size":125333,"stargazers_count":1428,"watchers_count":1428,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":549,"mirror_url":null,"open_issues_count":581,"forks":549,"open_issues":581,"watchers":1428,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/3539"},"html":{"href":"https://github.com/honestbleeps/Reddit-Enhancement-Suite/pull/3539"},"issue":{"href":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/issues/3539"},"comments":{"href":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/issues/3539/comments"},"review_comments":{"href":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/3539/comments"},"review_comment":{"href":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/pulls/3539/commits"},"statuses":{"href":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/statuses/77e7aa3afcd06c91d2c6f8a24897cf114d5f90ff"}}}}
{"actor":{"display_login":"erikdesjardins"}}