From b5a42aeb9a0c96f17097ff5f3c6845cbe8f55469 Mon Sep 17 00:00:00 2001 From: zand Date: Mon, 5 Oct 2026 10:00:11 +0200 Subject: [PATCH] fix: block usr_ signups --- bin/mastodon-email-blocker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/mastodon-email-blocker.py b/bin/mastodon-email-blocker.py index 70733b0..a6e08f9 100755 --- a/bin/mastodon-email-blocker.py +++ b/bin/mastodon-email-blocker.py @@ -18,7 +18,7 @@ from pathlib import Path import dns.resolver -VERSION = "6.5" +VERSION = "6.6" SOURCES = [ "https://raw.githubusercontent.com/mehrtat/disposable-email-domain/main/domains.txt", @@ -429,7 +429,7 @@ User.pending.find_each(batch_size: 100) do |user| EmailDomainBlock.block?(user.email) blocked_username = - user.account.username.to_s.match?(/\\Ausr_/i) + user.account.username.to_s.match?(/\Ausr_/i) next unless blocked_email || blocked_username