Adding open_registration to nodeinfo.

This commit is contained in:
Dessalines 2019-12-31 10:44:30 -05:00
parent f7156bdac3
commit 22904e1c66
2 changed files with 2 additions and 7 deletions

View file

@ -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!();

View file

@ -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()