mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
🎨 Changed showing update notifications for minor/major only (#9009)
closes #9006 - this is a temporary fix to only show update notifications for minor/major releases - the notification refactoring is in the pipeline, but not yet merged into 1.X/LTS, see https://github.com/TryGhost/Ghost/pull/8871
This commit is contained in:
parent
aef3d7f3f3
commit
85f8498bd6
1 changed files with 2 additions and 1 deletions
|
@ -248,7 +248,8 @@ function showUpdateNotification() {
|
|||
return api.settings.read(_.extend({key: 'display_update_notification'}, internal)).then(function then(response) {
|
||||
var display = response.settings[0];
|
||||
|
||||
if (display && display.value && currentVersion && semver.gt(display.value, currentVersion)) {
|
||||
// @TODO: We only show minor/major releases. This is a temporary fix. #5071 is coming soon.
|
||||
if (display && display.value && currentVersion && semver.patch(display.value) === 0) {
|
||||
return display.value;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue