0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Removing featured option code

ref #5943

- found some more code that can be removed
This commit is contained in:
Hannah Wolfe 2015-11-09 12:15:40 +00:00
parent 132b2a7084
commit b8bab0e74c

View file

@ -357,14 +357,6 @@ Post = ghostBookshelf.Model.extend({
options.where['posts.page'] = options.staticPages;
}
if (_.has(options, 'featured')) {
// convert string true/false to boolean
if (!_.isBoolean(options.featured)) {
options.featured = _.contains(['true', '1'], options.featured);
}
options.where['posts.featured'] = options.featured;
}
// Unless `all` is passed as an option, filter on
// the status provided.
if (options.status !== 'all') {