fix
This commit is contained in:
parent
72a631c6c1
commit
393eb3523a
@ -269,10 +269,6 @@ async function processEmailTask(task, topic) {
|
||||
const htmlWithClickTracking = task.html.replace(
|
||||
/<a\s+href=["']([^"']+)["']/gi,
|
||||
(match, url) => {
|
||||
// Не отслеживаем ссылки отписки
|
||||
if (url.includes('/unsubscribe')) {
|
||||
return match;
|
||||
}
|
||||
const trackingUrl = `https://${domain}/api/mail/track/click/${deliveryLog.id}?url=${encodeURIComponent(url)}`;
|
||||
return `<a href="${trackingUrl}"`;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user