{"action":"opened","issue":{"url":"https://api.github.com/repos/wmenge/braindump-api/issues/7","labels_url":"https://api.github.com/repos/wmenge/braindump-api/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/wmenge/braindump-api/issues/7/comments","events_url":"https://api.github.com/repos/wmenge/braindump-api/issues/7/events","html_url":"https://github.com/wmenge/braindump-api/issues/7","id":102876945,"number":7,"title":"Save inline images to disk","user":{"login":"wmenge","id":578581,"avatar_url":"https://avatars.githubusercontent.com/u/578581?v=3","gravatar_id":"","url":"https://api.github.com/users/wmenge","html_url":"https://github.com/wmenge","followers_url":"https://api.github.com/users/wmenge/followers","following_url":"https://api.github.com/users/wmenge/following{/other_user}","gists_url":"https://api.github.com/users/wmenge/gists{/gist_id}","starred_url":"https://api.github.com/users/wmenge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmenge/subscriptions","organizations_url":"https://api.github.com/users/wmenge/orgs","repos_url":"https://api.github.com/users/wmenge/repos","events_url":"https://api.github.com/users/wmenge/events{/privacy}","received_events_url":"https://api.github.com/users/wmenge/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wmenge/braindump-api/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-24T19:50:14Z","updated_at":"2015-08-24T19:50:14Z","closed_at":null,"body":"after saving, replace `<img src=\"data:<bin64 blob>\" />` with `<img src=\"/assets/<hash of image>.jpg\" />` where the image is:\r\n- stored to disk as /data/assets/<hash of image>.jpg\r\n- saved as asset record with link to user (so that assets remain private between users)\r\n\r\n(probably also need to unlink file upon deletion of note)"}}