{"action":"created","issue":{"url":"https://api.github.com/repos/websharks/wp-kb-articles/issues/90","labels_url":"https://api.github.com/repos/websharks/wp-kb-articles/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/websharks/wp-kb-articles/issues/90/comments","events_url":"https://api.github.com/repos/websharks/wp-kb-articles/issues/90/events","html_url":"https://github.com/websharks/wp-kb-articles/issues/90","id":63466868,"number":90,"title":"Feature Request (GitHub Integration): Link images to themselves","user":{"login":"raamdev","id":53005,"avatar_url":"https://avatars.githubusercontent.com/u/53005?v=3","gravatar_id":"","url":"https://api.github.com/users/raamdev","html_url":"https://github.com/raamdev","followers_url":"https://api.github.com/users/raamdev/followers","following_url":"https://api.github.com/users/raamdev/following{/other_user}","gists_url":"https://api.github.com/users/raamdev/gists{/gist_id}","starred_url":"https://api.github.com/users/raamdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raamdev/subscriptions","organizations_url":"https://api.github.com/users/raamdev/orgs","repos_url":"https://api.github.com/users/raamdev/repos","events_url":"https://api.github.com/users/raamdev/events{/privacy}","received_events_url":"https://api.github.com/users/raamdev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/websharks/wp-kb-articles/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/websharks/wp-kb-articles/labels/github-integration","name":"github-integration","color":"bfe5bf"},{"url":"https://api.github.com/repos/websharks/wp-kb-articles/labels/ready%20for%20work","name":"ready for work","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"jaswsinc","id":1563559,"avatar_url":"https://avatars.githubusercontent.com/u/1563559?v=3","gravatar_id":"","url":"https://api.github.com/users/jaswsinc","html_url":"https://github.com/jaswsinc","followers_url":"https://api.github.com/users/jaswsinc/followers","following_url":"https://api.github.com/users/jaswsinc/following{/other_user}","gists_url":"https://api.github.com/users/jaswsinc/gists{/gist_id}","starred_url":"https://api.github.com/users/jaswsinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaswsinc/subscriptions","organizations_url":"https://api.github.com/users/jaswsinc/orgs","repos_url":"https://api.github.com/users/jaswsinc/repos","events_url":"https://api.github.com/users/jaswsinc/events{/privacy}","received_events_url":"https://api.github.com/users/jaswsinc/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-03-21T23:31:17Z","updated_at":"2015-04-15T19:19:14Z","closed_at":null,"body":"When using the GitHub Integration and when writing a KB Article that includes an image like this:\r\n\r\n```\r\n![zencache-static-cdn-filters-diagram](https://cloud.githubusercontent.com/assets/53005/6723898/47a2d062-cdc5-11e4-8933-ed0133a9fc08.png)\r\n```\r\n\r\nIt would be nice to have that image show up on the WordPress side in the KB Article hyperlinked to itself (i.e., linked to the file that was uploaded to WordPress by the GitHub Integration).\r\n\r\nThe reason for this is if we're showing a large image (such as the big diagram in [How do Static CDN Filters Work?](http://zencache.com/kb-article/how-do-static-cdn-filters-work/)), we'll want a way for the visitor to see the larger version of the image (if, for example, they're viewing the article from a smaller screen). \r\n\r\nIn fact, I feel that _all_ images should be linked to themselves as a rule. I'm not seeing any reason not to do this, but we could make this an option to enable/disable this auto-linking functionality in the WP KB Articles GitHub Integration options.\r\n\r\n---\r\n\r\n## What Actions Need To Occur Here?\r\n\r\n- [x] Update [this class member](https://github.com/websharks/wp-kb-articles-pro/blob/000000-dev/wp-kb-articles-pro/includes/classes/github-mirror.php#L517); adding a new body filter to deal with this.\r\n- [ ] Add a new YAML config. key that enables/disables this.\r\n- [ ] Add a new config. option in the plugin UI that sets the default value, and that default value should default to `true`."},"comment":{"url":"https://api.github.com/repos/websharks/wp-kb-articles/issues/comments/93537171","html_url":"https://github.com/websharks/wp-kb-articles/issues/90#issuecomment-93537171","issue_url":"https://api.github.com/repos/websharks/wp-kb-articles/issues/90","id":93537171,"user":{"login":"jaswsinc","id":1563559,"avatar_url":"https://avatars.githubusercontent.com/u/1563559?v=3","gravatar_id":"","url":"https://api.github.com/users/jaswsinc","html_url":"https://github.com/jaswsinc","followers_url":"https://api.github.com/users/jaswsinc/followers","following_url":"https://api.github.com/users/jaswsinc/following{/other_user}","gists_url":"https://api.github.com/users/jaswsinc/gists{/gist_id}","starred_url":"https://api.github.com/users/jaswsinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaswsinc/subscriptions","organizations_url":"https://api.github.com/users/jaswsinc/orgs","repos_url":"https://api.github.com/users/jaswsinc/repos","events_url":"https://api.github.com/users/jaswsinc/events{/privacy}","received_events_url":"https://api.github.com/users/jaswsinc/received_events","type":"User","site_admin":false},"created_at":"2015-04-15T19:19:14Z","updated_at":"2015-04-15T19:19:14Z","body":"This has been implemented. I'll update s2member.com and zencache.com soon.\r\n\r\n~ I did not add options for this yet though, so I'm leaving this open for now."}}