From 4cd5222ee077f8cc1016c3338ea8ff7676322b72 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Wed, 18 Nov 2015 11:17:48 +0000 Subject: [PATCH] Update author query to use filter refs #5943 --- core/client/app/routes/posts.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/client/app/routes/posts.js b/core/client/app/routes/posts.js index 689c8690dd..900380b975 100644 --- a/core/client/app/routes/posts.js +++ b/core/client/app/routes/posts.js @@ -9,7 +9,8 @@ export default AuthenticatedRoute.extend(ShortcutsRoute, PaginationRouteMixin, { paginationModel: 'post', paginationSettings: { status: 'all', - staticPages: 'all' + staticPages: 'all', + filter: '' }, model: function () { @@ -18,7 +19,7 @@ export default AuthenticatedRoute.extend(ShortcutsRoute, PaginationRouteMixin, { return this.get('session.user').then(function (user) { if (user.get('isAuthor')) { - paginationSettings.author = user.get('slug'); + paginationSettings.filter += `+author:${user.get('slug')}`; } return self.loadFirstPage().then(function () {