mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-27 06:41:18 +00:00
Adding open_registration to nodeinfo.
This commit is contained in:
parent
f7156bdac3
commit
22904e1c66
2 changed files with 2 additions and 7 deletions
|
@ -4,12 +4,7 @@ extern crate diesel_migrations;
|
|||
|
||||
use actix_web::*;
|
||||
use lemmy_server::db::establish_connection;
|
||||
use lemmy_server::routes::federation;
|
||||
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::routes::{federation, feeds, index, nodeinfo, webfinger, websocket};
|
||||
use lemmy_server::settings::Settings;
|
||||
|
||||
embed_migrations!();
|
||||
|
|
|
@ -50,7 +50,7 @@ fn node_info() -> HttpResponse<Body> {
|
|||
},
|
||||
"localPosts": site_view.number_of_posts,
|
||||
"localComments": site_view.number_of_comments,
|
||||
"openRegistrations": true,
|
||||
"openRegistrations": site_view.open_registration,
|
||||
}
|
||||
});
|
||||
return HttpResponse::Ok()
|
||||
|
|
Loading…
Reference in a new issue