Skip notifications for user actions against the same user

This commit is contained in:
Johannes Zellner
2019-01-10 13:21:26 +01:00
parent cc81a10dd2
commit 83ae303b31
2 changed files with 9 additions and 3 deletions

View File

@@ -207,9 +207,6 @@ function mailUserEvent(mailTo, user, event) {
assert.strictEqual(typeof user, 'object');
assert.strictEqual(typeof event, 'string');
// skip sending mail to the same user
if (mailTo === user.email) return;
getMailConfig(function (error, mailConfig) {
if (error) return debug('Error getting mail details:', error);