aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Script/Inactive.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-01-08 17:37:12 +0000
committerMatthew Somerville <matthew@mysociety.org>2020-01-09 17:31:44 +0000
commitc38ca476d282c8e369ae6788b3400c4cc41f3e20 (patch)
tree871b24adb74a00bb61dd09d76621abfa61df4661 /perllib/FixMyStreet/Script/Inactive.pm
parent0cbcf9e9a1153f3463abc01268891658b2853e12 (diff)
[Inactive] Ignore already anonymized users.
Diffstat (limited to 'perllib/FixMyStreet/Script/Inactive.pm')
-rw-r--r--perllib/FixMyStreet/Script/Inactive.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Script/Inactive.pm b/perllib/FixMyStreet/Script/Inactive.pm
index 0468d2a52..02b01b9b1 100644
--- a/perllib/FixMyStreet/Script/Inactive.pm
+++ b/perllib/FixMyStreet/Script/Inactive.pm
@@ -126,6 +126,7 @@ sub anonymize_users {
my $users = FixMyStreet::DB->resultset("User")->search({
last_active => { '<', interval($self->anonymize) },
+ email => { -not_like => 'removed-%@' . FixMyStreet->config('EMAIL_DOMAIN') },
});
while (my $user = $users->next) {