From 6a59b536e52ca3ab183079a1f561a3968c3dd4e7 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 17 Aug 2019 14:39:20 -0700 Subject: [PATCH] Fix bug when changing main community name. --- server/src/api/user.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/api/user.rs b/server/src/api/user.rs index 2a6c214a7..672eca562 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 {