{"action":"created","issue":{"url":"https://api.github.com/repos/pjuu/pjuu/issues/151","labels_url":"https://api.github.com/repos/pjuu/pjuu/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/pjuu/pjuu/issues/151/comments","events_url":"https://api.github.com/repos/pjuu/pjuu/issues/151/events","html_url":"https://github.com/pjuu/pjuu/pull/151","id":119592351,"number":151,"title":"Fix issues with avatar caching and pillow resizing.","user":{"login":"docapotamus","id":1929544,"avatar_url":"https://avatars.githubusercontent.com/u/1929544?v=3","gravatar_id":"","url":"https://api.github.com/users/docapotamus","html_url":"https://github.com/docapotamus","followers_url":"https://api.github.com/users/docapotamus/followers","following_url":"https://api.github.com/users/docapotamus/following{/other_user}","gists_url":"https://api.github.com/users/docapotamus/gists{/gist_id}","starred_url":"https://api.github.com/users/docapotamus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docapotamus/subscriptions","organizations_url":"https://api.github.com/users/docapotamus/orgs","repos_url":"https://api.github.com/users/docapotamus/repos","events_url":"https://api.github.com/users/docapotamus/events{/privacy}","received_events_url":"https://api.github.com/users/docapotamus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-30T22:09:23Z","updated_at":"2015-11-30T22:11:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pjuu/pjuu/pulls/151","html_url":"https://github.com/pjuu/pjuu/pull/151","diff_url":"https://github.com/pjuu/pjuu/pull/151.diff","patch_url":"https://github.com/pjuu/pjuu/pull/151.patch"},"body":"- Pillow resize was added rather than thumbnail as it was keeping aspect\r\n  rather than making an odd sized avatar exactly 96x96.\r\n- Removed the need to be logged in to Pjuu to see uploaded content. This\r\n  allows caching at a web tier such as Nginx, Apache, etc.\r\n- So that upload URLs are not the same name as there assoicated objects\r\n  ID. Each upload is assigned a new UUID seperate to that of the post or\r\n  user.\r\n\r\nThis has caused a load of changes to templates as now, instead of the\r\nusers e-mail being pulled in to each post the avatar is now brought in\r\ninstead.\r\n\r\nThis has opened up the ground work to a load more optimisations which\r\ncan/need to be made."},"comment":{"url":"https://api.github.com/repos/pjuu/pjuu/issues/comments/160778146","html_url":"https://github.com/pjuu/pjuu/pull/151#issuecomment-160778146","issue_url":"https://api.github.com/repos/pjuu/pjuu/issues/151","id":160778146,"user":{"login":"docapotamus","id":1929544,"avatar_url":"https://avatars.githubusercontent.com/u/1929544?v=3","gravatar_id":"","url":"https://api.github.com/users/docapotamus","html_url":"https://github.com/docapotamus","followers_url":"https://api.github.com/users/docapotamus/followers","following_url":"https://api.github.com/users/docapotamus/following{/other_user}","gists_url":"https://api.github.com/users/docapotamus/gists{/gist_id}","starred_url":"https://api.github.com/users/docapotamus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docapotamus/subscriptions","organizations_url":"https://api.github.com/users/docapotamus/orgs","repos_url":"https://api.github.com/users/docapotamus/repos","events_url":"https://api.github.com/users/docapotamus/events{/privacy}","received_events_url":"https://api.github.com/users/docapotamus/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T22:11:24Z","updated_at":"2015-11-30T22:11:24Z","body":"Merging this will closes #145 and #138. It also goes some way to help with #58.\r\n\r\nCaching needs looking in to in more detail for the static and uploaded assets before web tier caching can be added in to https://pjuu.com."}}