From cd9df4455ede8435d54c32d369bb782b14733498 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 31 Dec 2019 10:44:30 -0500 Subject: [PATCH] Adding open_registration to nodeinfo. --- server/src/main.rs | 7 +------ server/src/routes/nodeinfo.rs | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/server/src/main.rs b/server/src/main.rs index bf105323..cc1cbcec 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -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!(); diff --git a/server/src/routes/nodeinfo.rs b/server/src/routes/nodeinfo.rs index 3165aea1..cbc0fb0f 100644 --- a/server/src/routes/nodeinfo.rs +++ b/server/src/routes/nodeinfo.rs @@ -50,7 +50,7 @@ fn node_info() -> HttpResponse { }, "localPosts": site_view.number_of_posts, "localComments": site_view.number_of_comments, - "openRegistrations": true, + "openRegistrations": site_view.open_registration, } }); return HttpResponse::Ok() -- 2.44.1