Skip to content

Commit d54839a

Browse files
authored
HOTFIX: emails models previous_recipients to allow any status
Don't limit message search to STATUS_SENT messages; we were repeatedly checking the mediawiki api to see if we could email the same non-emailable users. Bug: T409420
1 parent 984cc9c commit d54839a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

TWLight/emails/models.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ def user_pks_with_subject_list(self, subject, users):
3737
except ValueError:
3838
pass
3939

40-
# Search for repients of sent messages with the one of the localized email subjects.
40+
# Search for repients of existing messages with the one of the localized email subjects.
4141
previous_recipients = self.filter(
42-
status=Message.STATUS_SENT,
4342
subject__in=subjects,
4443
).values_list("to_email", flat=True)
4544

0 commit comments

Comments
 (0)