mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 07:25:46 +01:00
closes #3644
This commit is contained in:
@@ -74,8 +74,8 @@ var fs = require('fs'),
|
||||
|
||||
callback = callback || function() {};
|
||||
|
||||
if (!Plugins.hasListeners('action:email.send')) {
|
||||
winston.warn('[emailer] No active email plugin found!');
|
||||
if (!Plugins.hasListeners('filter:email.send')) {
|
||||
winston.warn('[emailer] No active email plugin found to send "' + template + '" email');
|
||||
return callback();
|
||||
}
|
||||
|
||||
@@ -110,11 +110,10 @@ var fs = require('fs'),
|
||||
pid: params.pid,
|
||||
fromUid: params.fromUid
|
||||
};
|
||||
Plugins.fireHook('filter:email.send', data, next);
|
||||
Plugins.fireHook('filter:email.modify', data, next);
|
||||
},
|
||||
function (data, next) {
|
||||
Plugins.fireHook('action:email.send', data);
|
||||
next();
|
||||
Plugins.fireHook('filter:email.send', data, next);
|
||||
}
|
||||
], callback);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user