WP Discourse "Update Discourse topic" error

Just a quick followup

I tried to update a post to display full post with removing any shortcodes based on the code snippet from here:

Even then I get the good old error:

A 422 response code was returned from Discourse.
Unprocessable Entity