{"action":"created","comment":{"url":"https://api.github.com/repos/drupal-media/media_entity_twitter/pulls/comments/50020995","id":50020995,"diff_hunk":"@@ -163,6 +176,20 @@ public function getField(MediaInterface $media, $name) {\n             return $tweet['retweet_count'];\n           }\n           return FALSE;\n+\n+        case 'thumbnail':\n+          $uri = 'public://twitter-thumbnails/' . $matches['id'] . '.svg';\n+          if (! file_exists($uri)) {\n+            $build = [\n+              '#theme' => 'media_entity_twitter_tweet_thumbnail',\n+              '#tweet' => $tweet['text'],\n+              '#author' => $tweet['user']['name'],\n+              '#avatar' => $tweet['user']['profile_image_url'],","path":"src/Plugin/MediaEntity/Type/Twitter.php","position":60,"original_position":60,"commit_id":"b216666da75e07a06ded8d6fdd0daf7149e4bb4a","original_commit_id":"b216666da75e07a06ded8d6fdd0daf7149e4bb4a","user":{"login":"slashrsm","id":376889,"avatar_url":"https://avatars.githubusercontent.com/u/376889?v=3","gravatar_id":"","url":"https://api.github.com/users/slashrsm","html_url":"https://github.com/slashrsm","followers_url":"https://api.github.com/users/slashrsm/followers","following_url":"https://api.github.com/users/slashrsm/following{/other_user}","gists_url":"https://api.github.com/users/slashrsm/gists{/gist_id}","starred_url":"https://api.github.com/users/slashrsm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slashrsm/subscriptions","organizations_url":"https://api.github.com/users/slashrsm/orgs","repos_url":"https://api.github.com/users/slashrsm/repos","events_url":"https://api.github.com/users/slashrsm/events{/privacy}","received_events_url":"https://api.github.com/users/slashrsm/received_events","type":"User","site_admin":false},"body":"Could we fetch image and store it locally?","created_at":"2016-01-18T16:53:51Z","updated_at":"2016-01-18T16:53:51Z","html_url":"https://github.com/drupal-media/media_entity_twitter/pull/24#discussion_r50020995","pull_request_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/drupal-media/media_entity_twitter/pulls/comments/50020995"},"html":{"href":"https://github.com/drupal-media/media_entity_twitter/pull/24#discussion_r50020995"},"pull_request":{"href":"https://api.github.com/repos/drupal-media/media_entity_twitter/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/drupal-media/media_entity_twitter/pulls/24","id":56187368,"html_url":"https://github.com/drupal-media/media_entity_twitter/pull/24","diff_url":"https://github.com/drupal-media/media_entity_twitter/pull/24.diff","patch_url":"https://github.com/drupal-media/media_entity_twitter/pull/24.patch","issue_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/issues/24","number":24,"state":"open","locked":false,"title":"ThumbnailsTNG using SVG","user":{"login":"phenaproxima","id":4504530,"avatar_url":"https://avatars.githubusercontent.com/u/4504530?v=3","gravatar_id":"","url":"https://api.github.com/users/phenaproxima","html_url":"https://github.com/phenaproxima","followers_url":"https://api.github.com/users/phenaproxima/followers","following_url":"https://api.github.com/users/phenaproxima/following{/other_user}","gists_url":"https://api.github.com/users/phenaproxima/gists{/gist_id}","starred_url":"https://api.github.com/users/phenaproxima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phenaproxima/subscriptions","organizations_url":"https://api.github.com/users/phenaproxima/orgs","repos_url":"https://api.github.com/users/phenaproxima/repos","events_url":"https://api.github.com/users/phenaproxima/events{/privacy}","received_events_url":"https://api.github.com/users/phenaproxima/received_events","type":"User","site_admin":false},"body":"So, this is kind of a coup-de-grace...\r\n\r\nThis PR introduces the ability to generate thumbnails for tweets which are purely textual (unaccompanied by images or other media). The thumbnails are SVGs containing the text of the tweet -- without hyperlinks or any other interactivity -- the name of the author, and their avatar. The SVG itself is generated using a Twig template and the theme system.\r\n\r\nIf adopted, this blows open the doors for what's possible in terms of thumbnail generation.","created_at":"2016-01-15T16:06:40Z","updated_at":"2016-01-18T16:53:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5f5b9a759c580fb778b9f510c532d0af23938dc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/pulls/24/commits","review_comments_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/pulls/24/comments","review_comment_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/issues/24/comments","statuses_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/statuses/b216666da75e07a06ded8d6fdd0daf7149e4bb4a","head":{"label":"phenaproxima:8.x-1.x","ref":"8.x-1.x","sha":"b216666da75e07a06ded8d6fdd0daf7149e4bb4a","user":{"login":"phenaproxima","id":4504530,"avatar_url":"https://avatars.githubusercontent.com/u/4504530?v=3","gravatar_id":"","url":"https://api.github.com/users/phenaproxima","html_url":"https://github.com/phenaproxima","followers_url":"https://api.github.com/users/phenaproxima/followers","following_url":"https://api.github.com/users/phenaproxima/following{/other_user}","gists_url":"https://api.github.com/users/phenaproxima/gists{/gist_id}","starred_url":"https://api.github.com/users/phenaproxima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phenaproxima/subscriptions","organizations_url":"https://api.github.com/users/phenaproxima/orgs","repos_url":"https://api.github.com/users/phenaproxima/repos","events_url":"https://api.github.com/users/phenaproxima/events{/privacy}","received_events_url":"https://api.github.com/users/phenaproxima/received_events","type":"User","site_admin":false},"repo":{"id":47140741,"name":"media_entity_twitter","full_name":"phenaproxima/media_entity_twitter","owner":{"login":"phenaproxima","id":4504530,"avatar_url":"https://avatars.githubusercontent.com/u/4504530?v=3","gravatar_id":"","url":"https://api.github.com/users/phenaproxima","html_url":"https://github.com/phenaproxima","followers_url":"https://api.github.com/users/phenaproxima/followers","following_url":"https://api.github.com/users/phenaproxima/following{/other_user}","gists_url":"https://api.github.com/users/phenaproxima/gists{/gist_id}","starred_url":"https://api.github.com/users/phenaproxima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phenaproxima/subscriptions","organizations_url":"https://api.github.com/users/phenaproxima/orgs","repos_url":"https://api.github.com/users/phenaproxima/repos","events_url":"https://api.github.com/users/phenaproxima/events{/privacy}","received_events_url":"https://api.github.com/users/phenaproxima/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phenaproxima/media_entity_twitter","description":"Twitter integration for media entity.","fork":true,"url":"https://api.github.com/repos/phenaproxima/media_entity_twitter","forks_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/forks","keys_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/teams","hooks_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/hooks","issue_events_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/issues/events{/number}","events_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/events","assignees_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/assignees{/user}","branches_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/branches{/branch}","tags_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/tags","blobs_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/git/refs{/sha}","trees_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/statuses/{sha}","languages_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/languages","stargazers_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/stargazers","contributors_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/contributors","subscribers_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/subscribers","subscription_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/subscription","commits_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/commits{/sha}","git_commits_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/git/commits{/sha}","comments_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/comments{/number}","issue_comment_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/issues/comments{/number}","contents_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/contents/{+path}","compare_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/merges","archive_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/downloads","issues_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/issues{/number}","pulls_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/pulls{/number}","milestones_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/milestones{/number}","notifications_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/labels{/name}","releases_url":"https://api.github.com/repos/phenaproxima/media_entity_twitter/releases{/id}","created_at":"2015-11-30T19:23:55Z","updated_at":"2016-01-15T16:01:47Z","pushed_at":"2016-01-15T17:09:18Z","git_url":"git://github.com/phenaproxima/media_entity_twitter.git","ssh_url":"git@github.com:phenaproxima/media_entity_twitter.git","clone_url":"https://github.com/phenaproxima/media_entity_twitter.git","svn_url":"https://github.com/phenaproxima/media_entity_twitter","homepage":null,"size":59,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"8.x-1.x"}},"base":{"label":"drupal-media:8.x-1.x","ref":"8.x-1.x","sha":"495e6771065ccc05c4f39a23a43fad50c8f99a23","user":{"login":"drupal-media","id":7276699,"avatar_url":"https://avatars.githubusercontent.com/u/7276699?v=3","gravatar_id":"","url":"https://api.github.com/users/drupal-media","html_url":"https://github.com/drupal-media","followers_url":"https://api.github.com/users/drupal-media/followers","following_url":"https://api.github.com/users/drupal-media/following{/other_user}","gists_url":"https://api.github.com/users/drupal-media/gists{/gist_id}","starred_url":"https://api.github.com/users/drupal-media/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drupal-media/subscriptions","organizations_url":"https://api.github.com/users/drupal-media/orgs","repos_url":"https://api.github.com/users/drupal-media/repos","events_url":"https://api.github.com/users/drupal-media/events{/privacy}","received_events_url":"https://api.github.com/users/drupal-media/received_events","type":"Organization","site_admin":false},"repo":{"id":24944566,"name":"media_entity_twitter","full_name":"drupal-media/media_entity_twitter","owner":{"login":"drupal-media","id":7276699,"avatar_url":"https://avatars.githubusercontent.com/u/7276699?v=3","gravatar_id":"","url":"https://api.github.com/users/drupal-media","html_url":"https://github.com/drupal-media","followers_url":"https://api.github.com/users/drupal-media/followers","following_url":"https://api.github.com/users/drupal-media/following{/other_user}","gists_url":"https://api.github.com/users/drupal-media/gists{/gist_id}","starred_url":"https://api.github.com/users/drupal-media/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drupal-media/subscriptions","organizations_url":"https://api.github.com/users/drupal-media/orgs","repos_url":"https://api.github.com/users/drupal-media/repos","events_url":"https://api.github.com/users/drupal-media/events{/privacy}","received_events_url":"https://api.github.com/users/drupal-media/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/drupal-media/media_entity_twitter","description":"Twitter integration for media entity.","fork":false,"url":"https://api.github.com/repos/drupal-media/media_entity_twitter","forks_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/forks","keys_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/teams","hooks_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/hooks","issue_events_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/issues/events{/number}","events_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/events","assignees_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/assignees{/user}","branches_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/branches{/branch}","tags_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/tags","blobs_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/git/refs{/sha}","trees_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/statuses/{sha}","languages_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/languages","stargazers_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/stargazers","contributors_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/contributors","subscribers_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/subscribers","subscription_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/subscription","commits_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/commits{/sha}","git_commits_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/git/commits{/sha}","comments_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/comments{/number}","issue_comment_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/issues/comments{/number}","contents_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/contents/{+path}","compare_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/merges","archive_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/downloads","issues_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/issues{/number}","pulls_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/pulls{/number}","milestones_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/milestones{/number}","notifications_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/labels{/name}","releases_url":"https://api.github.com/repos/drupal-media/media_entity_twitter/releases{/id}","created_at":"2014-10-08T14:30:29Z","updated_at":"2015-02-06T16:09:50Z","pushed_at":"2016-01-15T17:09:19Z","git_url":"git://github.com/drupal-media/media_entity_twitter.git","ssh_url":"git@github.com:drupal-media/media_entity_twitter.git","clone_url":"https://github.com/drupal-media/media_entity_twitter.git","svn_url":"https://github.com/drupal-media/media_entity_twitter","homepage":null,"size":59,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":2,"forks":9,"open_issues":2,"watchers":1,"default_branch":"8.x-1.x"}},"_links":{"self":{"href":"https://api.github.com/repos/drupal-media/media_entity_twitter/pulls/24"},"html":{"href":"https://github.com/drupal-media/media_entity_twitter/pull/24"},"issue":{"href":"https://api.github.com/repos/drupal-media/media_entity_twitter/issues/24"},"comments":{"href":"https://api.github.com/repos/drupal-media/media_entity_twitter/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/drupal-media/media_entity_twitter/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/drupal-media/media_entity_twitter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/drupal-media/media_entity_twitter/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/drupal-media/media_entity_twitter/statuses/b216666da75e07a06ded8d6fdd0daf7149e4bb4a"}}}}