Ghost/ghost/staff-service/lib/email-templates/recommendation-received.txt.js
Sag 15adb254f0
Added an option to recommend back in Admin Settings (#18478)
refs https://github.com/TryGhost/Product/issues/3978

- added "GET /incoming_recommendations/" browse endpoint to the Admin
API - we store incoming recommendations as mentions in the database. The
new endpoint reuses the Mentions API underneath to fetch verified
mentions of type recommendation - recommendation-specific attributes are
returned by the new endpoint, including calculated fields such as the
"RecommendingBack" boolean
- show "Recommend back" option for sites recommending me, only if I
haven't recommended the site already
2023-10-04 15:22:04 +00:00

14 lines
422 B
JavaScript

module.exports = function (data) {
const {recommendation} = data;
// Be careful when you indent the email, because whitespaces are visible in emails!
return `
You have been recommended by ${recommendation.title || recommendation.url}.
---
Sent to ${data.toEmail} from ${data.siteDomain}.
If you would no longer like to receive these notifications you can adjust your settings at ${data.staffUrl}.
`;
};