{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/5368","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/5368/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/5368/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/5368/events","html_url":"https://github.com/Automattic/wp-calypso/pull/5368","id":154699523,"number":5368,"title":"Reader: Use embed-container to render Slideshow gallery","user":{"login":"psealock","id":1922453,"avatar_url":"https://avatars.githubusercontent.com/u/1922453?v=3","gravatar_id":"","url":"https://api.github.com/users/psealock","html_url":"https://github.com/psealock","followers_url":"https://api.github.com/users/psealock/followers","following_url":"https://api.github.com/users/psealock/following{/other_user}","gists_url":"https://api.github.com/users/psealock/gists{/gist_id}","starred_url":"https://api.github.com/users/psealock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psealock/subscriptions","organizations_url":"https://api.github.com/users/psealock/orgs","repos_url":"https://api.github.com/users/psealock/repos","events_url":"https://api.github.com/users/psealock/events{/privacy}","received_events_url":"https://api.github.com/users/psealock/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Reader","name":"Reader","color":"006b75"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Status]%20Needs%20Review","name":"[Status] Needs Review","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-05-13T12:22:23Z","updated_at":"2016-06-02T20:46:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/5368","html_url":"https://github.com/Automattic/wp-calypso/pull/5368","diff_url":"https://github.com/Automattic/wp-calypso/pull/5368.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/5368.patch"},"body":"**Issue**\r\nThe slideshow doesn't render on Reader\r\n<img width=\"426\" alt=\"screen shot 2016-05-14 at 12 05 31 am\" src=\"https://cloud.githubusercontent.com/assets/1922453/15247352/c93e23e4-1967-11e6-9a20-7633a22c9f52.png\">\r\n\r\nBut does render in the WYSIWYG editor in My Sites. More details on how to reproduce in https://github.com/Automattic/wp-calypso/issues/766\r\n\r\n**Problem**\r\nIn Reader, a post's content is a string of html that is ```dangerouslySetInnerHTML```'ed. Included is an empty div whose data attributes contain the information required to create a slideshow, but no javascript is ever included to make that happen.\r\n\r\n**Solution**\r\nUse ```EmbedContainer``` Component to check if rendered content contains a slideshow. If so, pull in the required scripts and css:\r\n* jQuery\r\n* [slideshow-shortcode.js](https://github.com/Automattic/jetpack/blob/master/modules/shortcodes/js/slideshow-shortcode.js)\r\n* [slideshow-shortcode.css](https://github.com/Automattic/jetpack/blob/master/modules/shortcodes/css/slideshow-shortcode.css)\r\n* [jQuery's cylcejs](https://s0.wp.com/wp-content/mu-plugins/shortcodes/js/jquery.cycle.js)\r\n\r\n\r\ncc @blowery @bluefuton \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/223416954","html_url":"https://github.com/Automattic/wp-calypso/pull/5368#issuecomment-223416954","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/5368","id":223416954,"user":{"login":"blowery","id":14350,"avatar_url":"https://avatars.githubusercontent.com/u/14350?v=3","gravatar_id":"","url":"https://api.github.com/users/blowery","html_url":"https://github.com/blowery","followers_url":"https://api.github.com/users/blowery/followers","following_url":"https://api.github.com/users/blowery/following{/other_user}","gists_url":"https://api.github.com/users/blowery/gists{/gist_id}","starred_url":"https://api.github.com/users/blowery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blowery/subscriptions","organizations_url":"https://api.github.com/users/blowery/orgs","repos_url":"https://api.github.com/users/blowery/repos","events_url":"https://api.github.com/users/blowery/events{/privacy}","received_events_url":"https://api.github.com/users/blowery/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T20:46:17Z","updated_at":"2016-06-02T20:46:17Z","body":"Good enough for now. Shipping."}}
{"actor":{"display_login":"blowery"}}