WIP(links): replace hrefs in string tokens

This commit is contained in:
Kalista Payne
2026-05-19 07:05:35 -05:00
parent 7e704d65fd
commit 80f4f086c0
52 changed files with 289 additions and 1082 deletions
@@ -26,7 +26,10 @@ async function emailUnsubscribe (req, res) {
if (userUpdated.modifiedCount !== 1) throw new NotFound(res.t('userNotFound'));
res.send(`<h1>${res.t('unsubscribedSuccessfully')}</h1> ${res.t('unsubscribedTextUsers')}`);
res.send(`<h1>${res.t('unsubscribedSuccessfully')}</h1> ${res.t('unsubscribedTextUsers', {
linkOpen: '<a href="/user/settings/notifications">',
linkClose: '</a>',
})}`);
} else {
const unsubscribedEmail = await EmailUnsubscription
.findOne({ email: data.email.toLowerCase() }).exec();