diff --git a/src/mail_templates/app_updates_available.ejs b/src/mail_templates/app_updates_available.ejs index 261347bfb..341ab1ecc 100644 --- a/src/mail_templates/app_updates_available.ejs +++ b/src/mail_templates/app_updates_available.ejs @@ -10,11 +10,7 @@ Changes: <% } -%> -<% if (!hasSubscription) { -%> -*Keep your Cloudron automatically up-to-date and secure by upgrading to a paid plan at* <%= webadminUrl %>/#/settings -<% } else { -%> Update now at <%= webadminUrl %> -<% } -%> Powered by https://cloudron.io @@ -42,15 +38,11 @@ Sent at: <%= new Date().toUTCString() %>
<% } -%> -<% if (!hasSubscription) { -%> -

Keep your Cloudron automatically up-to-date and secure by upgrading to a paid plan.

-<% } else { -%>


Update now

-<% } -%>
diff --git a/src/mailer.js b/src/mailer.js index aa70b43de..586933fef 100644 --- a/src/mailer.js +++ b/src/mailer.js @@ -256,10 +256,9 @@ function appUpdated(mailTo, app, callback) { }); } -function appUpdatesAvailable(mailTo, apps, hasSubscription, callback) { +function appUpdatesAvailable(mailTo, apps, callback) { assert.strictEqual(typeof mailTo, 'string'); assert.strictEqual(typeof apps, 'object'); - assert.strictEqual(typeof hasSubscription, 'boolean'); assert.strictEqual(typeof callback, 'function'); getMailConfig(function (error, mailConfig) { @@ -272,7 +271,6 @@ function appUpdatesAvailable(mailTo, apps, hasSubscription, callback) { var templateData = { webadminUrl: settings.adminOrigin(), - hasSubscription: hasSubscription, apps: apps, cloudronName: mailConfig.cloudronName, cloudronAvatarUrl: settings.adminOrigin() + '/api/v1/cloudron/avatar'