{"action":"opened","number":100,"pull_request":{"url":"https://api.github.com/repos/onespacemedia/cms/pulls/100","id":53836187,"html_url":"https://github.com/onespacemedia/cms/pull/100","diff_url":"https://github.com/onespacemedia/cms/pull/100.diff","patch_url":"https://github.com/onespacemedia/cms/pull/100.patch","issue_url":"https://api.github.com/repos/onespacemedia/cms/issues/100","number":100,"state":"open","locked":false,"title":"Media: Fix UnicodeDecodeError for non-ASCII image titles","user":{"login":"lewiscollard","id":4973097,"avatar_url":"https://avatars.githubusercontent.com/u/4973097?v=3","gravatar_id":"","url":"https://api.github.com/users/lewiscollard","html_url":"https://github.com/lewiscollard","followers_url":"https://api.github.com/users/lewiscollard/followers","following_url":"https://api.github.com/users/lewiscollard/following{/other_user}","gists_url":"https://api.github.com/users/lewiscollard/gists{/gist_id}","starred_url":"https://api.github.com/users/lewiscollard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewiscollard/subscriptions","organizations_url":"https://api.github.com/users/lewiscollard/orgs","repos_url":"https://api.github.com/users/lewiscollard/repos","events_url":"https://api.github.com/users/lewiscollard/events{/privacy}","received_events_url":"https://api.github.com/users/lewiscollard/received_events","type":"User","site_admin":false},"body":"Currently, if an image contains non-ASCII characters (ord > 127) characters, it will cause the get_preview function to fail which will give a 500 error on the image listing page. This fixes it by prefixing the returned string with `u`.","created_at":"2015-12-16T12:41:51Z","updated_at":"2015-12-16T12:41:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/onespacemedia/cms/pulls/100/commits","review_comments_url":"https://api.github.com/repos/onespacemedia/cms/pulls/100/comments","review_comment_url":"https://api.github.com/repos/onespacemedia/cms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/onespacemedia/cms/issues/100/comments","statuses_url":"https://api.github.com/repos/onespacemedia/cms/statuses/908c730a1417b3c68f06db74176e594901a8d343","head":{"label":"onespacemedia:nonascii-image-title-fix","ref":"nonascii-image-title-fix","sha":"908c730a1417b3c68f06db74176e594901a8d343","user":{"login":"onespacemedia","id":4577273,"avatar_url":"https://avatars.githubusercontent.com/u/4577273?v=3","gravatar_id":"","url":"https://api.github.com/users/onespacemedia","html_url":"https://github.com/onespacemedia","followers_url":"https://api.github.com/users/onespacemedia/followers","following_url":"https://api.github.com/users/onespacemedia/following{/other_user}","gists_url":"https://api.github.com/users/onespacemedia/gists{/gist_id}","starred_url":"https://api.github.com/users/onespacemedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onespacemedia/subscriptions","organizations_url":"https://api.github.com/users/onespacemedia/orgs","repos_url":"https://api.github.com/users/onespacemedia/repos","events_url":"https://api.github.com/users/onespacemedia/events{/privacy}","received_events_url":"https://api.github.com/users/onespacemedia/received_events","type":"Organization","site_admin":false},"repo":{"id":10475661,"name":"cms","full_name":"onespacemedia/cms","owner":{"login":"onespacemedia","id":4577273,"avatar_url":"https://avatars.githubusercontent.com/u/4577273?v=3","gravatar_id":"","url":"https://api.github.com/users/onespacemedia","html_url":"https://github.com/onespacemedia","followers_url":"https://api.github.com/users/onespacemedia/followers","following_url":"https://api.github.com/users/onespacemedia/following{/other_user}","gists_url":"https://api.github.com/users/onespacemedia/gists{/gist_id}","starred_url":"https://api.github.com/users/onespacemedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onespacemedia/subscriptions","organizations_url":"https://api.github.com/users/onespacemedia/orgs","repos_url":"https://api.github.com/users/onespacemedia/repos","events_url":"https://api.github.com/users/onespacemedia/events{/privacy}","received_events_url":"https://api.github.com/users/onespacemedia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/onespacemedia/cms","description":"A collection of Django extensions that add content-management facilities to Django projects.","fork":false,"url":"https://api.github.com/repos/onespacemedia/cms","forks_url":"https://api.github.com/repos/onespacemedia/cms/forks","keys_url":"https://api.github.com/repos/onespacemedia/cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/onespacemedia/cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/onespacemedia/cms/teams","hooks_url":"https://api.github.com/repos/onespacemedia/cms/hooks","issue_events_url":"https://api.github.com/repos/onespacemedia/cms/issues/events{/number}","events_url":"https://api.github.com/repos/onespacemedia/cms/events","assignees_url":"https://api.github.com/repos/onespacemedia/cms/assignees{/user}","branches_url":"https://api.github.com/repos/onespacemedia/cms/branches{/branch}","tags_url":"https://api.github.com/repos/onespacemedia/cms/tags","blobs_url":"https://api.github.com/repos/onespacemedia/cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/onespacemedia/cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/onespacemedia/cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/onespacemedia/cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/onespacemedia/cms/statuses/{sha}","languages_url":"https://api.github.com/repos/onespacemedia/cms/languages","stargazers_url":"https://api.github.com/repos/onespacemedia/cms/stargazers","contributors_url":"https://api.github.com/repos/onespacemedia/cms/contributors","subscribers_url":"https://api.github.com/repos/onespacemedia/cms/subscribers","subscription_url":"https://api.github.com/repos/onespacemedia/cms/subscription","commits_url":"https://api.github.com/repos/onespacemedia/cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/onespacemedia/cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/onespacemedia/cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/onespacemedia/cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/onespacemedia/cms/contents/{+path}","compare_url":"https://api.github.com/repos/onespacemedia/cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/onespacemedia/cms/merges","archive_url":"https://api.github.com/repos/onespacemedia/cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/onespacemedia/cms/downloads","issues_url":"https://api.github.com/repos/onespacemedia/cms/issues{/number}","pulls_url":"https://api.github.com/repos/onespacemedia/cms/pulls{/number}","milestones_url":"https://api.github.com/repos/onespacemedia/cms/milestones{/number}","notifications_url":"https://api.github.com/repos/onespacemedia/cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/onespacemedia/cms/labels{/name}","releases_url":"https://api.github.com/repos/onespacemedia/cms/releases{/id}","created_at":"2013-06-04T09:55:56Z","updated_at":"2015-11-06T17:32:35Z","pushed_at":"2015-12-16T12:38:10Z","git_url":"git://github.com/onespacemedia/cms.git","ssh_url":"git@github.com:onespacemedia/cms.git","clone_url":"https://github.com/onespacemedia/cms.git","svn_url":"https://github.com/onespacemedia/cms","homepage":"","size":10549,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":14,"forks":5,"open_issues":14,"watchers":6,"default_branch":"develop"}},"base":{"label":"onespacemedia:develop","ref":"develop","sha":"33b028e7f4aaea25d9d4e75ab6c9a556d8e2e704","user":{"login":"onespacemedia","id":4577273,"avatar_url":"https://avatars.githubusercontent.com/u/4577273?v=3","gravatar_id":"","url":"https://api.github.com/users/onespacemedia","html_url":"https://github.com/onespacemedia","followers_url":"https://api.github.com/users/onespacemedia/followers","following_url":"https://api.github.com/users/onespacemedia/following{/other_user}","gists_url":"https://api.github.com/users/onespacemedia/gists{/gist_id}","starred_url":"https://api.github.com/users/onespacemedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onespacemedia/subscriptions","organizations_url":"https://api.github.com/users/onespacemedia/orgs","repos_url":"https://api.github.com/users/onespacemedia/repos","events_url":"https://api.github.com/users/onespacemedia/events{/privacy}","received_events_url":"https://api.github.com/users/onespacemedia/received_events","type":"Organization","site_admin":false},"repo":{"id":10475661,"name":"cms","full_name":"onespacemedia/cms","owner":{"login":"onespacemedia","id":4577273,"avatar_url":"https://avatars.githubusercontent.com/u/4577273?v=3","gravatar_id":"","url":"https://api.github.com/users/onespacemedia","html_url":"https://github.com/onespacemedia","followers_url":"https://api.github.com/users/onespacemedia/followers","following_url":"https://api.github.com/users/onespacemedia/following{/other_user}","gists_url":"https://api.github.com/users/onespacemedia/gists{/gist_id}","starred_url":"https://api.github.com/users/onespacemedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onespacemedia/subscriptions","organizations_url":"https://api.github.com/users/onespacemedia/orgs","repos_url":"https://api.github.com/users/onespacemedia/repos","events_url":"https://api.github.com/users/onespacemedia/events{/privacy}","received_events_url":"https://api.github.com/users/onespacemedia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/onespacemedia/cms","description":"A collection of Django extensions that add content-management facilities to Django projects.","fork":false,"url":"https://api.github.com/repos/onespacemedia/cms","forks_url":"https://api.github.com/repos/onespacemedia/cms/forks","keys_url":"https://api.github.com/repos/onespacemedia/cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/onespacemedia/cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/onespacemedia/cms/teams","hooks_url":"https://api.github.com/repos/onespacemedia/cms/hooks","issue_events_url":"https://api.github.com/repos/onespacemedia/cms/issues/events{/number}","events_url":"https://api.github.com/repos/onespacemedia/cms/events","assignees_url":"https://api.github.com/repos/onespacemedia/cms/assignees{/user}","branches_url":"https://api.github.com/repos/onespacemedia/cms/branches{/branch}","tags_url":"https://api.github.com/repos/onespacemedia/cms/tags","blobs_url":"https://api.github.com/repos/onespacemedia/cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/onespacemedia/cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/onespacemedia/cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/onespacemedia/cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/onespacemedia/cms/statuses/{sha}","languages_url":"https://api.github.com/repos/onespacemedia/cms/languages","stargazers_url":"https://api.github.com/repos/onespacemedia/cms/stargazers","contributors_url":"https://api.github.com/repos/onespacemedia/cms/contributors","subscribers_url":"https://api.github.com/repos/onespacemedia/cms/subscribers","subscription_url":"https://api.github.com/repos/onespacemedia/cms/subscription","commits_url":"https://api.github.com/repos/onespacemedia/cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/onespacemedia/cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/onespacemedia/cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/onespacemedia/cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/onespacemedia/cms/contents/{+path}","compare_url":"https://api.github.com/repos/onespacemedia/cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/onespacemedia/cms/merges","archive_url":"https://api.github.com/repos/onespacemedia/cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/onespacemedia/cms/downloads","issues_url":"https://api.github.com/repos/onespacemedia/cms/issues{/number}","pulls_url":"https://api.github.com/repos/onespacemedia/cms/pulls{/number}","milestones_url":"https://api.github.com/repos/onespacemedia/cms/milestones{/number}","notifications_url":"https://api.github.com/repos/onespacemedia/cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/onespacemedia/cms/labels{/name}","releases_url":"https://api.github.com/repos/onespacemedia/cms/releases{/id}","created_at":"2013-06-04T09:55:56Z","updated_at":"2015-11-06T17:32:35Z","pushed_at":"2015-12-16T12:38:10Z","git_url":"git://github.com/onespacemedia/cms.git","ssh_url":"git@github.com:onespacemedia/cms.git","clone_url":"https://github.com/onespacemedia/cms.git","svn_url":"https://github.com/onespacemedia/cms","homepage":"","size":10549,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":14,"forks":5,"open_issues":14,"watchers":6,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/onespacemedia/cms/pulls/100"},"html":{"href":"https://github.com/onespacemedia/cms/pull/100"},"issue":{"href":"https://api.github.com/repos/onespacemedia/cms/issues/100"},"comments":{"href":"https://api.github.com/repos/onespacemedia/cms/issues/100/comments"},"review_comments":{"href":"https://api.github.com/repos/onespacemedia/cms/pulls/100/comments"},"review_comment":{"href":"https://api.github.com/repos/onespacemedia/cms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/onespacemedia/cms/pulls/100/commits"},"statuses":{"href":"https://api.github.com/repos/onespacemedia/cms/statuses/908c730a1417b3c68f06db74176e594901a8d343"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":7,"deletions":7,"changed_files":2}}