diff --git a/core/server/models/post.js b/core/server/models/post.js index 7bf19a18de..99633d3ce0 100644 --- a/core/server/models/post.js +++ b/core/server/models/post.js @@ -286,6 +286,10 @@ Post = ghostBookshelf.Model.extend({ var postCollection = Posts.forge(), tagInstance = options.tag !== undefined ? Tag.forge({slug: options.tag}) : false; + if (options.limit) { + options.limit = parseInt(options.limit) || 15; + } + options = this.filterOptions(options, 'findPage'); // Set default settings for options