mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 21:33:24 +03:00
15adb254f0
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
14 lines
422 B
JavaScript
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}.
|
|
`;
|
|
};
|