Currently we add a base field to entity types and then hide the moderation_state widget if the specific entity we are editing isn't being moderated. Some bundles may have moderation switched off. The way we do this is with a check in our widget, but this doesn't protect other widgets and can cause a fatal with the following steps:
drush si standard && drush en content_moderation
Use field access for controlling if the field should appear or not.
Needs work
11.0 π₯
The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.
The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.