{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/22644080","id":22644080,"diff_hunk":"@@ -445,12 +445,18 @@\n         return null;\n       }\n       var mainPart = mime.slice(0, index);\n+      var secondPart = mime.substr(index + 1);\n+\n       switch (mainPart) {\n         case 'image':\n           return 'img';\n+        case 'text':\n+          if (secondPart !== 'plain') {\n+            return 'ref';\n+          }\n+          return mainPart;","path":"apps/sms/js/utils.js","position":13,"original_position":13,"commit_id":"7016b9189078d9eaa9bc806d41bb53c7ad42647e","original_commit_id":"2a5728e5685cdac003cccf06c4c7f4ebba6aa403","user":{"login":"steveck-chung","id":1704452,"avatar_url":"https://avatars.githubusercontent.com/u/1704452?v=3","gravatar_id":"","url":"https://api.github.com/users/steveck-chung","html_url":"https://github.com/steveck-chung","followers_url":"https://api.github.com/users/steveck-chung/followers","following_url":"https://api.github.com/users/steveck-chung/following{/other_user}","gists_url":"https://api.github.com/users/steveck-chung/gists{/gist_id}","starred_url":"https://api.github.com/users/steveck-chung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveck-chung/subscriptions","organizations_url":"https://api.github.com/users/steveck-chung/orgs","repos_url":"https://api.github.com/users/steveck-chung/repos","events_url":"https://api.github.com/users/steveck-chung/events{/privacy}","received_events_url":"https://api.github.com/users/steveck-chung/received_events","type":"User","site_admin":false},"body":"Ah, ok for me","created_at":"2015-01-08T10:19:57Z","updated_at":"2015-01-08T10:19:57Z","html_url":"https://github.com/mozilla-b2g/gaia/pull/26912#discussion_r22644080","pull_request_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/26912","_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/22644080"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/26912#discussion_r22644080"},"pull_request":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/26912"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/26912","id":26365146,"html_url":"https://github.com/mozilla-b2g/gaia/pull/26912","diff_url":"https://github.com/mozilla-b2g/gaia/pull/26912.diff","patch_url":"https://github.com/mozilla-b2g/gaia/pull/26912.patch","issue_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/26912","number":26912,"state":"open","locked":false,"title":"Bug 1007932 send vcard in an MMS","user":{"login":"jmcanterafonseca","id":694782,"avatar_url":"https://avatars.githubusercontent.com/u/694782?v=3","gravatar_id":"","url":"https://api.github.com/users/jmcanterafonseca","html_url":"https://github.com/jmcanterafonseca","followers_url":"https://api.github.com/users/jmcanterafonseca/followers","following_url":"https://api.github.com/users/jmcanterafonseca/following{/other_user}","gists_url":"https://api.github.com/users/jmcanterafonseca/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcanterafonseca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcanterafonseca/subscriptions","organizations_url":"https://api.github.com/users/jmcanterafonseca/orgs","repos_url":"https://api.github.com/users/jmcanterafonseca/repos","events_url":"https://api.github.com/users/jmcanterafonseca/events{/privacy}","received_events_url":"https://api.github.com/users/jmcanterafonseca/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-12-19T11:17:25Z","updated_at":"2015-01-08T10:19:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b7552ec3f46ecee1820589b9ac68dcbf8174d54a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/26912/commits","review_comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/26912/comments","review_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/26912/comments","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/7016b9189078d9eaa9bc806d41bb53c7ad42647e","head":{"label":"jmcanterafonseca:pick_vcard_final","ref":"pick_vcard_final","sha":"7016b9189078d9eaa9bc806d41bb53c7ad42647e","user":{"login":"jmcanterafonseca","id":694782,"avatar_url":"https://avatars.githubusercontent.com/u/694782?v=3","gravatar_id":"","url":"https://api.github.com/users/jmcanterafonseca","html_url":"https://github.com/jmcanterafonseca","followers_url":"https://api.github.com/users/jmcanterafonseca/followers","following_url":"https://api.github.com/users/jmcanterafonseca/following{/other_user}","gists_url":"https://api.github.com/users/jmcanterafonseca/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcanterafonseca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcanterafonseca/subscriptions","organizations_url":"https://api.github.com/users/jmcanterafonseca/orgs","repos_url":"https://api.github.com/users/jmcanterafonseca/repos","events_url":"https://api.github.com/users/jmcanterafonseca/events{/privacy}","received_events_url":"https://api.github.com/users/jmcanterafonseca/received_events","type":"User","site_admin":false},"repo":{"id":4857040,"name":"gaia","full_name":"jmcanterafonseca/gaia","owner":{"login":"jmcanterafonseca","id":694782,"avatar_url":"https://avatars.githubusercontent.com/u/694782?v=3","gravatar_id":"","url":"https://api.github.com/users/jmcanterafonseca","html_url":"https://github.com/jmcanterafonseca","followers_url":"https://api.github.com/users/jmcanterafonseca/followers","following_url":"https://api.github.com/users/jmcanterafonseca/following{/other_user}","gists_url":"https://api.github.com/users/jmcanterafonseca/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcanterafonseca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcanterafonseca/subscriptions","organizations_url":"https://api.github.com/users/jmcanterafonseca/orgs","repos_url":"https://api.github.com/users/jmcanterafonseca/repos","events_url":"https://api.github.com/users/jmcanterafonseca/events{/privacy}","received_events_url":"https://api.github.com/users/jmcanterafonseca/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmcanterafonseca/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project","fork":true,"url":"https://api.github.com/repos/jmcanterafonseca/gaia","forks_url":"https://api.github.com/repos/jmcanterafonseca/gaia/forks","keys_url":"https://api.github.com/repos/jmcanterafonseca/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmcanterafonseca/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmcanterafonseca/gaia/teams","hooks_url":"https://api.github.com/repos/jmcanterafonseca/gaia/hooks","issue_events_url":"https://api.github.com/repos/jmcanterafonseca/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/jmcanterafonseca/gaia/events","assignees_url":"https://api.github.com/repos/jmcanterafonseca/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/jmcanterafonseca/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/jmcanterafonseca/gaia/tags","blobs_url":"https://api.github.com/repos/jmcanterafonseca/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmcanterafonseca/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmcanterafonseca/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmcanterafonseca/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmcanterafonseca/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/jmcanterafonseca/gaia/languages","stargazers_url":"https://api.github.com/repos/jmcanterafonseca/gaia/stargazers","contributors_url":"https://api.github.com/repos/jmcanterafonseca/gaia/contributors","subscribers_url":"https://api.github.com/repos/jmcanterafonseca/gaia/subscribers","subscription_url":"https://api.github.com/repos/jmcanterafonseca/gaia/subscription","commits_url":"https://api.github.com/repos/jmcanterafonseca/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmcanterafonseca/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmcanterafonseca/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmcanterafonseca/gaia/issues/comments/{number}","contents_url":"https://api.github.com/repos/jmcanterafonseca/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/jmcanterafonseca/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmcanterafonseca/gaia/merges","archive_url":"https://api.github.com/repos/jmcanterafonseca/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmcanterafonseca/gaia/downloads","issues_url":"https://api.github.com/repos/jmcanterafonseca/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/jmcanterafonseca/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/jmcanterafonseca/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/jmcanterafonseca/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmcanterafonseca/gaia/labels{/name}","releases_url":"https://api.github.com/repos/jmcanterafonseca/gaia/releases{/id}","created_at":"2012-07-02T07:42:07Z","updated_at":"2014-10-24T08:37:53Z","pushed_at":"2015-01-08T09:54:45Z","git_url":"git://github.com/jmcanterafonseca/gaia.git","ssh_url":"git@github.com:jmcanterafonseca/gaia.git","clone_url":"https://github.com/jmcanterafonseca/gaia.git","svn_url":"https://github.com/jmcanterafonseca/gaia","homepage":"https://wiki.mozilla.org/B2G","size":861721,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"mozilla-b2g:master","ref":"master","sha":"0930aeb35b83530a763099b971504e30d1ea149b","user":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"repo":{"id":2317369,"name":"gaia","full_name":"mozilla-b2g/gaia","owner":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-b2g/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project. NOTE: For details of what branches are used for what releases, see","fork":false,"url":"https://api.github.com/repos/mozilla-b2g/gaia","forks_url":"https://api.github.com/repos/mozilla-b2g/gaia/forks","keys_url":"https://api.github.com/repos/mozilla-b2g/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-b2g/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-b2g/gaia/teams","hooks_url":"https://api.github.com/repos/mozilla-b2g/gaia/hooks","issue_events_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-b2g/gaia/events","assignees_url":"https://api.github.com/repos/mozilla-b2g/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-b2g/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/tags","blobs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-b2g/gaia/languages","stargazers_url":"https://api.github.com/repos/mozilla-b2g/gaia/stargazers","contributors_url":"https://api.github.com/repos/mozilla-b2g/gaia/contributors","subscribers_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscribers","subscription_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscription","commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/comments/{number}","contents_url":"https://api.github.com/repos/mozilla-b2g/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-b2g/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-b2g/gaia/merges","archive_url":"https://api.github.com/repos/mozilla-b2g/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-b2g/gaia/downloads","issues_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-b2g/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-b2g/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-b2g/gaia/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-b2g/gaia/releases{/id}","created_at":"2011-09-03T01:38:46Z","updated_at":"2015-01-08T09:09:52Z","pushed_at":"2015-01-08T09:09:51Z","git_url":"git://github.com/mozilla-b2g/gaia.git","ssh_url":"git@github.com:mozilla-b2g/gaia.git","clone_url":"https://github.com/mozilla-b2g/gaia.git","svn_url":"https://github.com/mozilla-b2g/gaia","homepage":"https://wiki.mozilla.org/B2G","size":1370247,"stargazers_count":1845,"watchers_count":1845,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2153,"mirror_url":null,"open_issues_count":800,"forks":2153,"open_issues":800,"watchers":1845,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/26912"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/26912"},"issue":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/26912"},"comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/26912/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/26912/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/26912/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/7016b9189078d9eaa9bc806d41bb53c7ad42647e"}}}}