mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 00:46:52 +02:00
slimmed down some data, testing notif_post again
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -17,11 +17,7 @@
|
||||
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td style="padding: 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">
|
||||
<p style="margin: 0;">{intro}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 60px; font-family: sans-serif; font-size: 12px; font-style: italic; line-height: 20px; color: #777777;">
|
||||
<p style="margin: 0 0 20px 0;">{intro}</p>
|
||||
<p style="margin: 0;">{postBody}</p>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -31,7 +27,7 @@
|
||||
<table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" style="margin: auto;">
|
||||
<tr>
|
||||
<td style="border-radius: 3px; background: #222222; text-align: center;" class="button-td">
|
||||
<a href="{url}" style="background: #222222; border: 15px solid #222222; font-family: sans-serif; font-size: 13px; line-height: 1.1; text-align: center; text-decoration: none; display: block; border-radius: 3px; font-weight: bold;" class="button-a">
|
||||
<a href="{url}{topicSlug}" style="background: #222222; border: 15px solid #222222; font-family: sans-serif; font-size: 13px; line-height: 1.1; text-align: center; text-decoration: none; display: block; border-radius: 3px; font-weight: bold;" class="button-a">
|
||||
<span style="color:#ffffff;" class="button-link"> [[email:notif.post.cta]] </span>
|
||||
</a>
|
||||
</td>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!-- Email Footer : BEGIN -->
|
||||
<table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 680px;">
|
||||
<tr>
|
||||
<td style="padding: 40px 10px;width: 100%;font-size: 12px; font-family: sans-serif; line-height:18px; text-align: center; color: #888888;" class="x-gmail-data-detectors">
|
||||
<td style="padding: 40px 10px;width: 100%;font-size: 12px; font-family: sans-serif; line-height:18px; text-align: center; color: #888888;">
|
||||
<br><br>
|
||||
<!-- IF showUnsubscribe -->
|
||||
[[email:notif.post.unsub.info]] <a href="{base_url}/user/{userslug}/settings">[[email:unsub.cta]]</a>.
|
||||
|
||||
Reference in New Issue
Block a user