This should do the trick
https://github.com/discourse/discourse/commit/2adad96d0594a075f24d268c0c3b71ffe438db40