-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix sending new contributor notifications (#3477)
We broke sending new contributor notifications in #2677 by moving the is_new_contributor() check after the point when translation is saved, while keeping its logic (return True whether the user has not made any contributions yet). That way the function always returns False. This changeset: * Fixes the logic to detect that the submitted translation is the user's first contribution to the locale. * Add an additional check that the new contributor notification is not sent to project managers. * Adds a test case to checks whether the new contributor notification is sent and that it's only sent once.
- Loading branch information
Showing
3 changed files
with
83 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters