mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
While it should be an invariant that message.rendered_content is never None for a row saved to the database, it is possible for that invariant to be violated, likely including due to bugs in previous versions of data import/export tools. While it'd be ideal for such messages to be rendered to fix the invariant, it doesn't make sense for this has_link migration to crash because of such a corrupted row, so we apply the similar policy we already have for rendered_content="".