Solved Thread title is not included in content spam check

This topic has been solved
K

Kirby

Guest
When checking a thread for spam, the title is not included in the message that is checked for spam:

\XF\Service\Thread\Creator
PHP:

Code:
public function checkForSpam()
{
    if ($this->thread->discussion_state == 'visible' && $this->user->isSpamCheckRequired())
    {
        $this->postPreparer->checkForSpam();
    }
}

The post preparer service only checks the post (which does not have a title), so the title is missed.

This seems inconsistent (and most likely not what a user...

Read more

Continue reading...