0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Removed updates to v0.1 specific code

refs #10922

v0.1 can just be left alone and not updated to use type - we can deal with that in a transform
This commit is contained in:
Fabien O'Carroll 2019-08-01 14:45:25 +08:00
parent cd45ab4f54
commit 08d83c1f53

View file

@ -620,9 +620,9 @@ Post = ghostBookshelf.Model.extend({
options.staticPages = _.includes(['true', '1'], options.staticPages);
}
filter = `type:${options.staticPages ? 'page' : 'post'}`;
filter = `page:${options.staticPages ? 'true' : 'false'}`;
} else if (options.staticPages === 'all') {
filter = 'type:[post, page]';
filter = 'page:[true, false]';
}
// CASE: "status" is passed, combine filters