Skip to content

Commit

Permalink
Removing featured option code
Browse files Browse the repository at this point in the history
ref TryGhost#5943

- found some more code that can be removed
  • Loading branch information
ErisDS committed Nov 9, 2015
1 parent 132b2a7 commit b8bab0e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions core/server/models/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit b8bab0e

Please sign in to comment.