Fix block_usernames config option

Fixes #244.
This commit is contained in:
David Robertson 2022-03-17 16:53:31 +00:00
parent 26ae55cd24
commit 2c9fc0ccdc
No known key found for this signature in database
GPG Key ID: 903ECE108A39DEDD

View File

@ -121,7 +121,9 @@ class AntiSpam(object):
def check_username_for_spam(self, user_profile):
if not self.block_usernames:
return True # allowed (we aren't blocking based on usernames)
# /!\ NB: unlike other checks, where `True` means allowed,
# here `True` means "this user is a spammer".
return False # allowed (we aren't blocking based on usernames)
# Check whether the user ID or display name matches any of the banned
# patterns.