mirror of
https://github.com/flarum/framework.git
synced 2025-05-21 22:36:01 +08:00
Fix discussion and post list sorting
This commit is contained in:
@ -112,10 +112,10 @@ export default class DiscussionList extends Component {
|
||||
if (this.props.params.q) {
|
||||
map.relevance = '';
|
||||
}
|
||||
map.latest = '-lastTime';
|
||||
map.top = '-commentsCount';
|
||||
map.newest = '-startTime';
|
||||
map.oldest = 'startTime';
|
||||
map.latest = '-lastPostedAt';
|
||||
map.top = '-commentCount';
|
||||
map.newest = '-createdAt';
|
||||
map.oldest = 'createdAt';
|
||||
|
||||
return map;
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ export default class PostsUserPage extends UserPage {
|
||||
type: 'comment'
|
||||
},
|
||||
page: {offset, limit: this.loadLimit},
|
||||
sort: '-time'
|
||||
sort: '-createdAt'
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user