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:
parent
132b2a7084
commit
b8bab0e74c
1 changed files with 0 additions and 8 deletions
|
@ -357,14 +357,6 @@ Post = ghostBookshelf.Model.extend({
|
||||||
options.where['posts.page'] = options.staticPages;
|
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
|
// Unless `all` is passed as an option, filter on
|
||||||
// the status provided.
|
// the status provided.
|
||||||
if (options.status !== 'all') {
|
if (options.status !== 'all') {
|
||||||
|
|
Loading…
Reference in a new issue