mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03: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
@ -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…
Reference in New Issue
Block a user