diff --git a/core/server/controllers/admin.js b/core/server/controllers/admin.js
index 80d727e489..534ea366ab 100644
--- a/core/server/controllers/admin.js
+++ b/core/server/controllers/admin.js
@@ -18,8 +18,8 @@ adminControllers = {
updateCheck().then(function () {
return updateCheck.showUpdateNotification();
- }).then(function (updateAvailable) {
- if (!updateAvailable) {
+ }).then(function (updateVersion) {
+ if (!updateVersion) {
return when.resolve();
}
@@ -28,10 +28,11 @@ adminControllers = {
location: 'top',
dismissible: false,
status: 'persistent',
- message: 'A new version of Ghost is available! Hot Damn. Upgrade now'
+ message: 'Ghost ' + updateVersion +
+ ' is available! Hot Damn. Please upgrade now'
};
- return api.notifications.browse().then(function (results) {
+ return api.notifications.browse({context: {internal: true}}).then(function (results) {
if (!_.some(results.notifications, { message: notification.message })) {
return api.notifications.add({ notifications: [notification] }, {context: {internal: true}});
}
diff --git a/core/server/update-check.js b/core/server/update-check.js
index 9cc6a29235..5b5038abfa 100644
--- a/core/server/update-check.js
+++ b/core/server/update-check.js
@@ -210,7 +210,7 @@ function showUpdateNotification() {
}
if (display && display.value && currentVersion && semver.gt(display.value, currentVersion)) {
- return when(true);
+ return when(currentVersion);
}
return when(false);
});