mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
parent
bb6b337be3
commit
a52f15d3d3
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ module.exports = function (Bookshelf) {
|
|||
|
||||
if (options.context && options.context.public) {
|
||||
// @TODO use the filter behavior for posts
|
||||
qb.andWhere('posts.page', '=', false);
|
||||
qb.andWhere('posts.type', '=', 'post');
|
||||
qb.andWhere('posts.status', '=', 'published');
|
||||
}
|
||||
});
|
||||
|
@ -36,7 +36,7 @@ module.exports = function (Bookshelf) {
|
|||
|
||||
if (options.context && options.context.public) {
|
||||
// @TODO use the filter behavior for posts
|
||||
qb.andWhere('posts.page', '=', false);
|
||||
qb.andWhere('posts.type', '=', 'post');
|
||||
qb.andWhere('posts.status', '=', 'published');
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue