mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-17 09:25:50 +00:00
Fix bug when changing main community name.
This commit is contained in:
parent
01738fb554
commit
7c3ac0c85d
@ -170,7 +170,7 @@ impl Perform<LoginResponse> for Oper<Register> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Create the main community if it doesn't exist
|
// 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,
|
Ok(c) => c,
|
||||||
Err(_e) => {
|
Err(_e) => {
|
||||||
let community_form = CommunityForm {
|
let community_form = CommunityForm {
|
||||||
|
Loading…
Reference in New Issue
Block a user