From 22904e1c66ecebda0f1b2709206f96f54d117715 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 bf105323c..cc1cbcec4 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 3165aea12..cbc0fb0fc 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()