From f128f988f3c33f1473d414b5c2cbb753b74e8fa0 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 14 Jul 2017 14:21:58 -0400 Subject: [PATCH] slimmed down some data, testing notif_post again --- src/topics/follow.js | 5 ----- src/views/emails/notif_post.tpl | 8 ++------ src/views/emails/partials/footer.tpl | 2 +- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/topics/follow.js b/src/topics/follow.js index 5d0de0e5a5..f26fa20a46 100644 --- a/src/topics/follow.js +++ b/src/topics/follow.js @@ -259,12 +259,7 @@ module.exports = function (Topics) { subject: '[' + (meta.config.title || 'NodeBB') + '] ' + title, intro: '[[notifications:user_posted_to, ' + postData.user.username + ', ' + titleEscaped + ']]', postBody: postData.content.replace(/"\/\//g, '"https://'), - username: data.userData.username, - userslug: data.userData.userslug, - url: nconf.get('url') + '/topic/' + postData.topic.tid, topicSlug: postData.topic.slug, - postCount: postData.topic.postcount, - base_url: nconf.get('url'), showUnsubscribe: true, }, next); } else { diff --git a/src/views/emails/notif_post.tpl b/src/views/emails/notif_post.tpl index 917926a390..e2f7921a47 100644 --- a/src/views/emails/notif_post.tpl +++ b/src/views/emails/notif_post.tpl @@ -17,11 +17,7 @@ - - - @@ -31,7 +27,7 @@
-

{intro}

-
+

{intro}

{postBody}

diff --git a/src/views/emails/partials/footer.tpl b/src/views/emails/partials/footer.tpl index 236887425c..2d891efaa9 100644 --- a/src/views/emails/partials/footer.tpl +++ b/src/views/emails/partials/footer.tpl @@ -1,7 +1,7 @@
- +     [[email:notif.post.cta]]    
-
+

[[email:notif.post.unsub.info]] [[email:unsub.cta]].