{"action":"created","issue":{"url":"https://api.github.com/repos/PokeAlarm/PokeAlarm/issues/623","repository_url":"https://api.github.com/repos/PokeAlarm/PokeAlarm","labels_url":"https://api.github.com/repos/PokeAlarm/PokeAlarm/issues/623/labels{/name}","comments_url":"https://api.github.com/repos/PokeAlarm/PokeAlarm/issues/623/comments","events_url":"https://api.github.com/repos/PokeAlarm/PokeAlarm/issues/623/events","html_url":"https://github.com/PokeAlarm/PokeAlarm/pull/623","id":300559289,"number":623,"title":"fix/hack for Slack static google maps images not showing","user":{"login":"elincognito","id":759006,"avatar_url":"https://avatars2.githubusercontent.com/u/759006?v=4","gravatar_id":"","url":"https://api.github.com/users/elincognito","html_url":"https://github.com/elincognito","followers_url":"https://api.github.com/users/elincognito/followers","following_url":"https://api.github.com/users/elincognito/following{/other_user}","gists_url":"https://api.github.com/users/elincognito/gists{/gist_id}","starred_url":"https://api.github.com/users/elincognito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elincognito/subscriptions","organizations_url":"https://api.github.com/users/elincognito/orgs","repos_url":"https://api.github.com/users/elincognito/repos","events_url":"https://api.github.com/users/elincognito/events{/privacy}","received_events_url":"https://api.github.com/users/elincognito/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-27T09:49:37Z","updated_at":"2018-02-27T14:12:40Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/PokeAlarm/PokeAlarm/pulls/623","html_url":"https://github.com/PokeAlarm/PokeAlarm/pull/623","diff_url":"https://github.com/PokeAlarm/PokeAlarm/pull/623.diff","patch_url":"https://github.com/PokeAlarm/PokeAlarm/pull/623.patch"},"body":"<!--       PULL REQUESTS CREATED NOT USING ONE OF THE BELOW         --->\r\n<!--      ISSUE TEMPLATES WILL BE CLOSED WITHOUT ANY RESPONSE       --->\r\n<!--       PULL REQUESTS CREATED NOT USING ONE OF THE BELOW         --->\r\n<!--      ISSUE TEMPLATES WILL BE CLOSED WITHOUT ANY RESPONSE       --->\r\n<!--       PULL REQUESTS CREATED NOT USING ONE OF THE BELOW         --->\r\n<!--      ISSUE TEMPLATES WILL BE CLOSED WITHOUT ANY RESPONSE       --->\r\n<!--       PULL REQUESTS CREATED NOT USING ONE OF THE BELOW         --->\r\n<!--      ISSUE TEMPLATES WILL BE CLOSED WITHOUT ANY RESPONSE       --->\r\n\r\n\r\n<!--\r\n Please make all PRs to the dev branch. The dev branch will be\r\n periodically pulled into the master branch. This allows time for\r\n the changes and documentation to be tested before being exposed to\r\n a wider population.\r\n--->\r\n\r\n## Description\r\n<!-- In detail, describe what your PR adds to PokeAlarm -->\r\nThis PR can be seen as an hack, however currently there is no other solution that i am aware.\r\nThis works by setting all links in slack to unfurl by default and appending the gmaps url\r\nto the end of slack text.\r\n\r\nOne can test message building [here](https://api.slack.com/docs/messages/builder?msg=%7B%22username%22%3A%22Swablu%22%2C%22unfurl_links%22%3Atrue%2C%22text%22%3A%22bl%C3%A1%20bl%C3%A1%20bl%C3%A1%20%3Chttps%3A%2F%2Fmaps.googleapis.com%2Fmaps%2Fapi%2Fstaticmap%3Fsize%3D512x512%26zoom%3D15%26center%3DBrooklyn%26style%3Dfeature%3Aroad.local%257Celement%3Ageometry%257Ccolor%3A0x00ff00%26style%3Dfeature%3Alandscape%257Celement%3Ageometry.fill%257Ccolor%3A0x000000%26style%3Delement%3Alabels%257Cinvert_lightness%3Atrue%26style%3Dfeature%3Aroad.arterial%257Celement%3Alabels%257Cinvert_lightness%3Afalse%26key%3DAIzaSyDTElUvfW04L1zHbLb0jdQndEXzas4W4v4%7C%20%3E%22%2C%22attachments%22%3A%5B%7B%22fallback%22%3A%22Map_Preview%22%2C%22image_url%22%3A%22https%3A%2F%2Fmaps.googleapis.com%2Fmaps%2Fapi%2Fstaticmap%3Fsize%3D512x512%26zoom%3D15%26center%3DBrooklyn%26style%3Dfeature%3Aroad.local%257Celement%3Ageometry%257Ccolor%3A0x00ff00%26style%3Dfeature%3Alandscape%257Celement%3Ageometry.fill%257Ccolor%3A0x000000%26style%3Delement%3Alabels%257Cinvert_lightness%3Atrue%26style%3Dfeature%3Aroad.arterial%257Celement%3Alabels%257Cinvert_lightness%3Afalse%26key%3DAIzaSyDTElUvfW04L1zHbLb0jdQndEXzas4W4v4%22%7D%5D%2C%22channel%22%3A%22example%22%7D)\r\n\r\n## Type of Change\r\n<!-- Place a single 'x' into the correct box, ex: [x] -->\r\n- [ ] Bug fix (non-breaking change which fixes an issue)\r\n- [ ] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (would cause existing functionality to change)\r\n\r\n## Motivation and Context\r\n<!---\r\n Why is this change required? What problem does it solve?\r\n If it fixes an open issue, please link to the issue here.\r\n-->\r\n\r\n## How Has This Been Tested?\r\n<!---\r\n Please describe in detail how you tested your changes. Make sure to\r\n describe what tests you have performed, your testing environment,\r\n and if you have used this in a production setting.\r\n-->\r\n\r\n## Screenshots (if appropriate):\r\n\r\n\r\n## Wiki Update\r\n<!--\r\n Does this feature require an update to the wiki? If so, please submit\r\n the required change to https://github.com/RocketMap/PokeAlarmWiki.\r\n If your feature requires a wiki update, you may submit it for review\r\n but it will not be accepted until the wiki update is complete.\r\n--->\r\n- [ ] This change requires an update to the Wiki.\r\n- [ ] This change does not require an update to the Wiki.\r\n\r\n\r\n## Checklist\r\n- [ ] This change follows the code style of this project.\r\n- [ ] This change only changes what is necessary to the feature.\r\n"},"comment":{"url":"https://api.github.com/repos/PokeAlarm/PokeAlarm/issues/comments/368890560","html_url":"https://github.com/PokeAlarm/PokeAlarm/pull/623#issuecomment-368890560","issue_url":"https://api.github.com/repos/PokeAlarm/PokeAlarm/issues/623","id":368890560,"user":{"login":"kvangent","id":10712294,"avatar_url":"https://avatars1.githubusercontent.com/u/10712294?v=4","gravatar_id":"","url":"https://api.github.com/users/kvangent","html_url":"https://github.com/kvangent","followers_url":"https://api.github.com/users/kvangent/followers","following_url":"https://api.github.com/users/kvangent/following{/other_user}","gists_url":"https://api.github.com/users/kvangent/gists{/gist_id}","starred_url":"https://api.github.com/users/kvangent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvangent/subscriptions","organizations_url":"https://api.github.com/users/kvangent/orgs","repos_url":"https://api.github.com/users/kvangent/repos","events_url":"https://api.github.com/users/kvangent/events{/privacy}","received_events_url":"https://api.github.com/users/kvangent/received_events","type":"User","site_admin":false},"created_at":"2018-02-27T14:12:40Z","updated_at":"2018-02-27T14:12:40Z","author_association":"COLLABORATOR","body":"As a warning to anyone considering using this: It will show your GMaps key to the world. "}}
{"actor":{"display_login":"kvangent"}}