diff --git a/functions/src/unsubscribe.ts b/functions/src/unsubscribe.ts index 862defdf..eddb0f1e 100644 --- a/functions/src/unsubscribe.ts +++ b/functions/src/unsubscribe.ts @@ -52,9 +52,10 @@ export const unsubscribe: EndpointDefinition = { const unsubscribeEndpoint = getFunctionUrl('unsubscribe') const optOutAllUrl = `${unsubscribeEndpoint}?id=${id}&type=${optOutAllType}` - res.send( - ` - + if (wantsToOptOutAll) { + res.send( + ` + @@ -170,19 +171,6 @@ export const unsubscribe: EndpointDefinition = { - - -
-

- Hello!

-
- - @@ -193,24 +181,9 @@ export const unsubscribe: EndpointDefinition = { data-testid="4XoHRGw1Y"> - ${email} has been unsubscribed from email notifications related to: + ${email} has opted out of receiving unnecessary email notifications -
-
- ${NOTIFICATION_DESCRIPTIONS[notificationSubscriptionType].detailed}. -

-
-
-
- Click - here - to manage the rest of your notification settings. - - Click - here - to unsubscribe from all unnecessary emails. - @@ -230,6 +203,190 @@ export const unsubscribe: EndpointDefinition = { +` + ) + } + + res.send( + ` + + + + + Manifold Markets 7th Day Anniversary Gift! + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+ +
+ + + + + + + + + + + + + + + +
+ + banner logo + +
+
+

+ Hello!

+
+
+
+

+ + ${email} has been unsubscribed from email notifications related to: + +
+
+ + ${NOTIFICATION_DESCRIPTIONS[notificationSubscriptionType].detailed}. +

+
+
+
+ Click + here + to unsubscribe from all unnecessary emails. + +
+
+ Click + here + to manage the rest of your notification settings. + +
+ +
+

+
+
+
+
+
+ ` )