]> Untitled Git - lemmy.git/commitdiff
Fixing issue with not getting back more than 10 communities
authorDessalines <tyhou13@gmx.com>
Thu, 18 Apr 2019 14:43:59 +0000 (07:43 -0700)
committerDessalines <tyhou13@gmx.com>
Thu, 18 Apr 2019 14:43:59 +0000 (07:43 -0700)
Fixes #72

server/src/websocket_server/server.rs

index a4c5b62037e15cebfc8ce19705576200df8c2f19..76721b58654fb549f3691120f0afa82b9b358125 100644 (file)
@@ -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, self.limit).unwrap();
+    let communities: Vec<CommunityView> = CommunityView::list(&conn, user_id, sort, self.page, Some(9999)).unwrap();
 
     // Return the jwt
     serde_json::to_string(