{"action":"created","issue":{"url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/issues/155","labels_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/issues/155/comments","events_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/issues/155/events","html_url":"https://github.com/wp-shortcake/shortcake-bakery/pull/155","id":117612369,"number":155,"title":"Pass post ID into embed reversal endpoint, allow for filtering response","user":{"login":"goldenapples","id":665992,"avatar_url":"https://avatars.githubusercontent.com/u/665992?v=3","gravatar_id":"","url":"https://api.github.com/users/goldenapples","html_url":"https://github.com/goldenapples","followers_url":"https://api.github.com/users/goldenapples/followers","following_url":"https://api.github.com/users/goldenapples/following{/other_user}","gists_url":"https://api.github.com/users/goldenapples/gists{/gist_id}","starred_url":"https://api.github.com/users/goldenapples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldenapples/subscriptions","organizations_url":"https://api.github.com/users/goldenapples/orgs","repos_url":"https://api.github.com/users/goldenapples/repos","events_url":"https://api.github.com/users/goldenapples/events{/privacy}","received_events_url":"https://api.github.com/users/goldenapples/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"danielbachhuber","id":36432,"avatar_url":"https://avatars.githubusercontent.com/u/36432?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbachhuber","html_url":"https://github.com/danielbachhuber","followers_url":"https://api.github.com/users/danielbachhuber/followers","following_url":"https://api.github.com/users/danielbachhuber/following{/other_user}","gists_url":"https://api.github.com/users/danielbachhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbachhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbachhuber/subscriptions","organizations_url":"https://api.github.com/users/danielbachhuber/orgs","repos_url":"https://api.github.com/users/danielbachhuber/repos","events_url":"https://api.github.com/users/danielbachhuber/events{/privacy}","received_events_url":"https://api.github.com/users/danielbachhuber/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/milestones/2","html_url":"https://github.com/wp-shortcake/shortcake-bakery/milestones/v0.2.0","labels_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/milestones/2/labels","id":1213280,"number":2,"title":"v0.2.0","description":"","creator":{"login":"danielbachhuber","id":36432,"avatar_url":"https://avatars.githubusercontent.com/u/36432?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbachhuber","html_url":"https://github.com/danielbachhuber","followers_url":"https://api.github.com/users/danielbachhuber/followers","following_url":"https://api.github.com/users/danielbachhuber/following{/other_user}","gists_url":"https://api.github.com/users/danielbachhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbachhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbachhuber/subscriptions","organizations_url":"https://api.github.com/users/danielbachhuber/orgs","repos_url":"https://api.github.com/users/danielbachhuber/repos","events_url":"https://api.github.com/users/danielbachhuber/events{/privacy}","received_events_url":"https://api.github.com/users/danielbachhuber/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":75,"state":"open","created_at":"2015-07-17T17:35:22Z","updated_at":"2015-11-19T16:46:44Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-11-18T15:34:56Z","updated_at":"2015-11-19T16:46:44Z","closed_at":"2015-11-19T16:46:44Z","pull_request":{"url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/pulls/155","html_url":"https://github.com/wp-shortcake/shortcake-bakery/pull/155","diff_url":"https://github.com/wp-shortcake/shortcake-bakery/pull/155.diff","patch_url":"https://github.com/wp-shortcake/shortcake-bakery/pull/155.patch"},"body":"When posting an inserted embed code to the Ajax endpoint, we should also\r\nsend the current post ID, so that it is available as additional context\r\nto the \"reversed_embed\" action.\r\n\r\nThis also introduces a filter on \"shortcake_bakery_embed_reversal\", so\r\nthat it's possible to filter the result of reversing an embed code. The\r\nidea is that this can be used to implement a system of protected embeds,\r\nor some other way of handling embed codes which don't match one of the\r\ndefined post elements.\r\n\r\nSee #154."},"comment":{"url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/issues/comments/158114671","html_url":"https://github.com/wp-shortcake/shortcake-bakery/pull/155#issuecomment-158114671","issue_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/issues/155","id":158114671,"user":{"login":"danielbachhuber","id":36432,"avatar_url":"https://avatars.githubusercontent.com/u/36432?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbachhuber","html_url":"https://github.com/danielbachhuber","followers_url":"https://api.github.com/users/danielbachhuber/followers","following_url":"https://api.github.com/users/danielbachhuber/following{/other_user}","gists_url":"https://api.github.com/users/danielbachhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbachhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbachhuber/subscriptions","organizations_url":"https://api.github.com/users/danielbachhuber/orgs","repos_url":"https://api.github.com/users/danielbachhuber/repos","events_url":"https://api.github.com/users/danielbachhuber/events{/privacy}","received_events_url":"https://api.github.com/users/danielbachhuber/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T16:46:42Z","updated_at":"2015-11-19T16:46:42Z","body":"Huh. Could've sworn I had already merged this."}}