-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle incorrect content IDs found in embeds
Previously, an uncaught error was raised in a content block's content ID couldn't be found, which prevented any editions being published if they had an incorrect embed code within them, with no feedback for the user on Mainstream when this happened. This is change sends an exception to Sentry to alert developers the event has occurred, and does not add the incorrect ID to the Links on a Document, which will prevent the embed code causing more problems when the editions is published and going through the rendering process via the `ContentEmbedPresenter`. The user should be able to see their changes published, and the embed code will appear as plain text on the frontend, so it should be easy to spot and change.
- Loading branch information
Showing
2 changed files
with
24 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters