0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Merge pull request #6090 from ErisDS/client-filter-updates

Update author query to use filter
This commit is contained in:
Kevin Ansfield 2015-11-20 09:29:50 +00:00
commit 4cac084bd0

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