Update author query to use filter

refs #5943
This commit is contained in:
Hannah Wolfe 2015-11-18 11:17:48 +00:00
parent 02429072ce
commit f285f8f948

View File

@ -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 () {