{"action":"opened","issue":{"url":"https://api.github.com/repos/guardianproject/securereader_ios/issues/62","labels_url":"https://api.github.com/repos/guardianproject/securereader_ios/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/guardianproject/securereader_ios/issues/62/comments","events_url":"https://api.github.com/repos/guardianproject/securereader_ios/issues/62/events","html_url":"https://github.com/guardianproject/securereader_ios/issues/62","id":105722422,"number":62,"title":"New Post with image not including enclosure in RSS","user":{"login":"chrisballinger","id":518687,"avatar_url":"https://avatars.githubusercontent.com/u/518687?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisballinger","html_url":"https://github.com/chrisballinger","followers_url":"https://api.github.com/users/chrisballinger/followers","following_url":"https://api.github.com/users/chrisballinger/following{/other_user}","gists_url":"https://api.github.com/users/chrisballinger/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisballinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisballinger/subscriptions","organizations_url":"https://api.github.com/users/chrisballinger/orgs","repos_url":"https://api.github.com/users/chrisballinger/repos","events_url":"https://api.github.com/users/chrisballinger/events{/privacy}","received_events_url":"https://api.github.com/users/chrisballinger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-10T02:52:43Z","updated_at":"2015-09-10T02:52:43Z","closed_at":null,"body":"Although the image URL is included in the post, it won't be viewable in the feed item list unless it is recognized via the media enclosure RSS.\r\n\r\nI tried to add enclosure support to our wordpress wrapper in https://github.com/guardianproject/securereader_ios/commit/28eb3ec40c50a8afcafce3f92cd5488c8a09a8db, but I can't seem to figure out the poorly documented wordpress API so it's not working.\r\n\r\nThe docs are unclear: https://codex.wordpress.org/XML-RPC_WordPress_API/Posts\r\n\r\nin the \"New Post\" section they mention:\r\n\r\n```\r\nstruct enclosure\r\nstring url\r\nint length\r\nstring type\r\n```\r\n\r\nSo I've tried to include those fields both appended as an array, and as a dictionary under the `enclosure` key, but neither approach works. Adding a comment to an existing post needed a similar method of trial and error until figuring out what the API really wanted, but no matter what I've tried I can't get it to work.\r\n\r\nThe test I wrote currently passes (but should fail) because there's no way to easily check the results of the operation without also writing a `wp.getPost` wrapper and checking if there's an enclosure."}}