From 5a8e476353c13799ea2edac19a59b4f7426f84af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Famibelle-Pronzola?= Date: Sun, 5 Mar 2023 13:11:31 +0400 Subject: [PATCH] Fix publication message --- src/api/parole/content-types/parole/lifecycles.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/parole/content-types/parole/lifecycles.js b/src/api/parole/content-types/parole/lifecycles.js index c04e2a9..1d64788 100644 --- a/src/api/parole/content-types/parole/lifecycles.js +++ b/src/api/parole/content-types/parole/lifecycles.js @@ -165,7 +165,7 @@ module.exports = { const previousPublishedAt = previousData.publishedAt const currentPublished_at = data.publishedAt if (currentPublished_at != previousPublishedAt) { - const message = `Nouvelle publication \xF0\x9F\x8E\xB6 \xF0\x9F\x94\xA5 + const message = `Nouvelle publication ❤️ \n${process.env.WEBSITE_URL}/paroles/${previousData.slug}` if (previousData.user) { strapi.plugins['email'].services.email.send({