Expose Gutenberg blocks in Post Revisions API endpoint

Figured it out, after half a day of banging away and asking a team mate. In the wpscholar link above I changed this line of code.

// Surface all Gutenberg blocks in the WordPress REST API

$post_types = get_post_types_by_support( [ 'editor' ] ); // change this line

$post_types = ['post', 'page', 'post-revision']; // to this

This targets the post-revision type and returns its content in Gutenberg blocks.

Hopefully this is helpful to someone

tech