Reddit is in an “arms race” to protect its communities from AI-generated content.