Thank you for reporting this bug. The mistake was in the Akismet plugin and was fixed in this PR:
https://github.com/discourse/discourse-akismet/pull/168