mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-15 21:41:43 +00:00
Fix bug when changing main community name.
This commit is contained in:
parent
b29e15df26
commit
ddd08278b9
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue