Done via:
https://github.com/discourse/discourse/commit/0e0794dff9e23f5ee5ba5f68a8a04f08254b4790
and
https://github.com/discourse/discourse/commit/248ad5466d5009476fb7170e878096a3e343ec1c