Update author query to use filter

refs #5943
This commit is contained in:
Hannah Wolfe 2015-11-18 11:17:48 +00:00
parent 4a25a017c3
commit 4cd5222ee0

View File

@ -9,7 +9,8 @@ export default AuthenticatedRoute.extend(ShortcutsRoute, PaginationRouteMixin, {
paginationModel: 'post', paginationModel: 'post',
paginationSettings: { paginationSettings: {
status: 'all', status: 'all',
staticPages: 'all' staticPages: 'all',
filter: ''
}, },
model: function () { model: function () {
@ -18,7 +19,7 @@ export default AuthenticatedRoute.extend(ShortcutsRoute, PaginationRouteMixin, {
return this.get('session.user').then(function (user) { return this.get('session.user').then(function (user) {
if (user.get('isAuthor')) { if (user.get('isAuthor')) {
paginationSettings.author = user.get('slug'); paginationSettings.filter += `+author:${user.get('slug')}`;
} }
return self.loadFirstPage().then(function () { return self.loadFirstPage().then(function () {