transition to blog.thorup.us
All checks were successful
Push to main / Reset-Version-Tag (push) Successful in 21s

This commit is contained in:
2025-01-08 10:25:32 -07:00
parent 17606ba7b8
commit 056572c541

View File

@@ -17,21 +17,21 @@ class CreateListmonkCampaign {
let imageUrl = postData.slice(postData.indexOf("](/") + 3);
imageUrl = imageUrl.slice(0, imageUrl.indexOf(")"));
imageUrl = `https://xn--trupgrd-exae.com/${imageUrl}`;
imageUrl = `https://blog.thorup.us/${imageUrl}`;
let contentBody = `
<h1>${title}</h1>
<a href="https://xn--trupgrd-exae.com@TrackLink">
<a href="https://blog.thorup.us@TrackLink">
<img src=\"${imageUrl}\">
</a>
<a class="button" href="https://xn--trupgrd-exae.com@TrackLink">View Post</a>
<a class="button" href="https://blog.thorup.us@TrackLink">View Post</a>
`;
let createRequestBody = {
name: title,
subject: "New Post",
lists: [process.env.INPUT_IS_PRODUCTION == "true" ? 3 : 4],
from_email: "TårupGård Mailer <mailer@tarupgard.com>",
from_email: "Thorup Family Mailer <mailer@thorup.us>",
content_type: "html",
type: "regular",
template_id: 1,
@@ -50,7 +50,7 @@ class CreateListmonkCampaign {
};
let createResponse = await fetch(
"https://mailer.tarupgard.com/api/campaigns",
"https://mailer.thorup.us/api/campaigns",
{
method: "POST",
headers: requestHeaders,