mirror of https://github.com/LemmyNet/lemmy.git
Adding open_registration to nodeinfo.
parent
80f76f2efd
commit
cd9df4455e
|
@ -4,12 +4,7 @@ extern crate diesel_migrations;
|
||||||
|
|
||||||
use actix_web::*;
|
use actix_web::*;
|
||||||
use lemmy_server::db::establish_connection;
|
use lemmy_server::db::establish_connection;
|
||||||
use lemmy_server::routes::federation;
|
use lemmy_server::routes::{federation, feeds, index, nodeinfo, webfinger, websocket};
|
||||||
use lemmy_server::routes::feeds;
|
|
||||||
use lemmy_server::routes::index;
|
|
||||||
use lemmy_server::routes::nodeinfo;
|
|
||||||
use lemmy_server::routes::webfinger;
|
|
||||||
use lemmy_server::routes::websocket;
|
|
||||||
use lemmy_server::settings::Settings;
|
use lemmy_server::settings::Settings;
|
||||||
|
|
||||||
embed_migrations!();
|
embed_migrations!();
|
||||||
|
|
|
@ -50,7 +50,7 @@ fn node_info() -> HttpResponse<Body> {
|
||||||
},
|
},
|
||||||
"localPosts": site_view.number_of_posts,
|
"localPosts": site_view.number_of_posts,
|
||||||
"localComments": site_view.number_of_comments,
|
"localComments": site_view.number_of_comments,
|
||||||
"openRegistrations": true,
|
"openRegistrations": site_view.open_registration,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return HttpResponse::Ok()
|
return HttpResponse::Ok()
|
||||||
|
|
Loading…
Reference in New Issue