mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-05 08:38:14 +02:00
fix: send fewer items to client-side for ACP settings/email page
This commit is contained in:
@@ -22,7 +22,7 @@ settingsController.email = async (req, res) => {
|
||||
|
||||
res.render('admin/settings/email', {
|
||||
emails: emails,
|
||||
sendable: emails.filter(e => !e.path.includes('_plaintext') && !e.path.includes('partials')),
|
||||
sendable: emails.filter(e => !e.path.includes('_plaintext') && !e.path.includes('partials')).map(tpl => tpl.path),
|
||||
services: emailer.listServices(),
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user