summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/src/api/user.rs2
1 files changed, 1 insertions, 1 deletions
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<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 {