mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
breaking: removal of filter:email.send
This commit is contained in:
@@ -344,10 +344,7 @@ Emailer.sendToEmail = async (template, email, language, params) => {
|
||||
const usingFallback = !Plugins.hooks.hasListeners('filter:email.send') &&
|
||||
!Plugins.hooks.hasListeners('static:email.send');
|
||||
try {
|
||||
if (Plugins.hooks.hasListeners('filter:email.send')) {
|
||||
// Deprecated, remove in v1.19.0
|
||||
await Plugins.hooks.fire('filter:email.send', data);
|
||||
} else if (Plugins.hooks.hasListeners('static:email.send')) {
|
||||
if (Plugins.hooks.hasListeners('static:email.send')) {
|
||||
await Plugins.hooks.fire('static:email.send', data);
|
||||
} else {
|
||||
await Emailer.sendViaFallback(data);
|
||||
|
||||
Reference in New Issue
Block a user