]> Untitled Git - lemmy.git/commitdiff
Temp
authorDessalines <tyhou13@gmx.com>
Fri, 26 Apr 2019 03:14:52 +0000 (20:14 -0700)
committerDessalines <tyhou13@gmx.com>
Fri, 26 Apr 2019 03:14:52 +0000 (20:14 -0700)
server/src/websocket_server/server.rs
ui/src/components/community-form.tsx
ui/src/components/login.tsx

index dbd1be8d58eaebcfba8b8d451904e54e728c9552..c99b32a633eb3aa9109ecbd26f13ea6bb742af99 100644 (file)
@@ -969,7 +969,7 @@ impl Perform for ListCommunities {
 
     let sort = SortType::from_str(&self.sort)?;
 
-    let communities: Vec<CommunityView> = CommunityView::list(&conn, user_id, sort, self.page, self.limit)?;
+    let communities: Vec<CommunityView> = CommunityView::list(&conn, user_id, sort, self.page, Some(50))?;
 
     // Return the jwt
     Ok(
index 66071a3fac1a897c8f2a67386982e3491b958fba..5effa73aea54313c40ca6e1bc6bcc3f3d92d7379 100644 (file)
@@ -120,7 +120,10 @@ export class CommunityForm extends Component<CommunityFormProps, CommunityFormSt
     if (i.props.community) {
       WebSocketService.Instance.editCommunity(i.state.communityForm);
     } else {
-      WebSocketService.Instance.createCommunity(i.state.communityForm);
+
+      setTimeout(function(){
+        WebSocketService.Instance.createCommunity(i.state.communityForm);
+      }, 10000);
     }
     i.setState(i.state);
   }
index f86faa2e12267bec12c9502137e7f5d3ca56cb28..2a9f8d7d9d45d08ef3c3ffd609293f8c4c0a4d8e 100644 (file)
@@ -157,7 +157,9 @@ export class Login extends Component<any, State> {
     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) {