mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-13 14:39:52 +03:00
parent
4a25a017c3
commit
4cd5222ee0
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user