Problem/Motivation

When spambot scans accounts on cron and tries to block the account, the account doesn't actually get blocked, even when this message appears in watchdog: "Blocked spam account: @name <@email> (uid @uid)'".

Steps to reproduce

Run cron with a spam account on the site. Observe it is not blocked.

Proposed resolution

I think this is because `$account->save()` is not called after `$account->block()` in spambot_cron().

Issue fork spambot-3426174

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

grasmash created an issue. See original summary.

grasmash’s picture

Status: Active » Needs review

nickdickinsonwilde made their first commit to this issue’s fork.

nickdickinsonwilde’s picture

Version: 8.x-1.3 » 8.x-1.x-dev
Status: Needs review » Fixed

mmm yeah that's very necessary. Thanks for catching that.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.