From: Dessalines Date: Fri, 26 Apr 2019 03:14:52 +0000 (-0700) Subject: Temp X-Git-Url: http://these/git/%7B%60https:/%7B%60css/themes/%22https:/nerdica.net/%7B%60%24%7BarchiveTodayUrl%7D?a=commitdiff_plain;h=9374aefa56a707cafce8740cd45a0d254ea2184f;p=lemmy.git Temp --- diff --git a/server/src/websocket_server/server.rs b/server/src/websocket_server/server.rs index dbd1be8d..c99b32a6 100644 --- a/server/src/websocket_server/server.rs +++ b/server/src/websocket_server/server.rs @@ -969,7 +969,7 @@ impl Perform for ListCommunities { let sort = SortType::from_str(&self.sort)?; - let communities: Vec = CommunityView::list(&conn, user_id, sort, self.page, self.limit)?; + let communities: Vec = CommunityView::list(&conn, user_id, sort, self.page, Some(50))?; // Return the jwt Ok( diff --git a/ui/src/components/community-form.tsx b/ui/src/components/community-form.tsx index 66071a3f..5effa73a 100644 --- a/ui/src/components/community-form.tsx +++ b/ui/src/components/community-form.tsx @@ -120,7 +120,10 @@ export class CommunityForm extends Component { i.state.registerLoading = true; i.setState(i.state); event.preventDefault(); - WebSocketService.Instance.register(i.state.registerForm); + setTimeout(function(){ + WebSocketService.Instance.register(i.state.registerForm); + }, 10000); } handleRegisterUsernameChange(i: Login, event: any) {