Pretty sure I fixed it earlier today
https://github.com/discourse/discourse/commit/79639e2dec11d2ae056e30b2bfd32ecfed6fec25