From: Dessalines Date: Sat, 17 Aug 2019 21:39:20 +0000 (-0700) Subject: Fix bug when changing main community name. X-Git-Url: http://these/git/?a=commitdiff_plain;h=7c3ac0c85de02f3e984e98206814eb876573a9f1;p=lemmy.git Fix bug when changing main community name. --- diff --git a/server/src/api/user.rs b/server/src/api/user.rs index 2a6c214a..672eca56 100644 --- a/server/src/api/user.rs +++ b/server/src/api/user.rs @@ -170,7 +170,7 @@ impl Perform for Oper { }; // 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 {