From b8bab0e74ccd5ae2abc4e921a46b4fc278f86064 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Mon, 9 Nov 2015 12:15:40 +0000 Subject: [PATCH] Removing `featured` option code ref #5943 - found some more code that can be removed --- core/server/models/post.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/server/models/post.js b/core/server/models/post.js index d5a70bffd6..6df2d7b989 100644 --- a/core/server/models/post.js +++ b/core/server/models/post.js @@ -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') {