mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-24 13:33:05 +00:00
Fixing some community sorting.
This commit is contained in:
parent
0e582c9d3c
commit
ebe9627dba
4 changed files with 6 additions and 4 deletions
|
@ -876,7 +876,7 @@ impl Perform for ListCommunities {
|
|||
|
||||
let sort = SortType::from_str(&self.sort).expect("listing sort");
|
||||
|
||||
let communities: Vec<CommunityView> = CommunityView::list(&conn, user_id, sort, self.page, Some(9999)).unwrap();
|
||||
let communities: Vec<CommunityView> = CommunityView::list(&conn, user_id, sort, self.page, self.limit).unwrap();
|
||||
|
||||
// Return the jwt
|
||||
serde_json::to_string(
|
||||
|
|
|
@ -32,7 +32,8 @@ export class Communities extends Component<any, CommunitiesState> {
|
|||
);
|
||||
|
||||
let listCommunitiesForm: ListCommunitiesForm = {
|
||||
sort: SortType[SortType.TopAll]
|
||||
sort: SortType[SortType.TopAll],
|
||||
limit: 9999,
|
||||
}
|
||||
|
||||
WebSocketService.Instance.listCommunities(listCommunitiesForm);
|
||||
|
|
|
@ -59,7 +59,7 @@ export class Main extends Component<any, State> {
|
|||
|
||||
let listCommunitiesForm: ListCommunitiesForm = {
|
||||
sort: SortType[SortType.New],
|
||||
limit: 8
|
||||
limit: 6
|
||||
}
|
||||
|
||||
WebSocketService.Instance.listCommunities(listCommunitiesForm);
|
||||
|
|
|
@ -59,7 +59,8 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
|
|||
);
|
||||
|
||||
let listCommunitiesForm: ListCommunitiesForm = {
|
||||
sort: SortType[SortType.TopAll]
|
||||
sort: SortType[SortType.TopAll],
|
||||
limit: 9999,
|
||||
}
|
||||
|
||||
WebSocketService.Instance.listCommunities(listCommunitiesForm);
|
||||
|
|
Loading…
Reference in a new issue