]> Untitled Git - lemmy.git/commitdiff
Fix bug when changing main community name.
authorDessalines <tyhou13@gmx.com>
Sat, 17 Aug 2019 21:39:20 +0000 (14:39 -0700)
committerDessalines <tyhou13@gmx.com>
Sat, 17 Aug 2019 21:39:20 +0000 (14:39 -0700)
server/src/api/user.rs

index 2a6c214a788111c5307edb8109def94eeddc4a52..672eca562a33522c4cfbf5e86f21c9253b76eb6f 100644 (file)
@@ -170,7 +170,7 @@ impl Perform<LoginResponse> for Oper<Register> {
     };
 
     // Create the main community if it doesn't exist
-    let main_community: Community = match Community::read_from_name(&conn, "main".to_string()) {
+    let main_community: Community = match Community::read(&conn, 2) {
       Ok(c) => c,
       Err(_e) => {
         let community_form = CommunityForm {