Closed goldenapples closed 8 years ago
@danielbachhuber #reviewmerge for me?
Mind if I merge this? I'm trying to set up a notification which needs to have the post ID available to include information about the post in the notification message.
Huh. Could've sworn I had already merged this.
When posting an inserted embed code to the Ajax endpoint, we should also send the current post ID, so that it is available as additional context to the "reversed_embed" action.
This also introduces a filter on "shortcake_bakery_embed_reversal", so that it's possible to filter the result of reversing an embed code. The idea is that this can be used to implement a system of protected embeds, or some other way of handling embed codes which don't match one of the defined post elements.
See #154.