Skip to content

Brian B. Tung

Blog

[Emdash] How an Unchecked Empty Submit and a Falsy-ID Guard in convertPTBlock Created a Permanent Autosave-Erasure Loop for YouTube Embeds

An unchecked form submission in EmDash's PluginBlockModal inserts YouTube blocks with empty IDs, which a falsy check in convertPTBlock converts to placeholder text on reload — and autosave permanently overwrites the original data two seconds later. The patch removes the falsy guard from the serializer and adds a form validation check to the modal.

Getting Started With Wagtail CMS

Wagtail is a powerful, flexible, open-source content management system for the Django web framework. However, it might not be the off-the-shelf solution you're looking for.