From: Dessalines Date: Tue, 31 Dec 2019 15:44:30 +0000 (-0500) Subject: Adding open_registration to nodeinfo. X-Git-Url: http://these/git/%7B%60/feeds/front/static/%24%7BappleTouchIcon%7D?a=commitdiff_plain;h=cd9df4455ede8435d54c32d369bb782b14733498;p=lemmy.git Adding open_registration to nodeinfo. --- 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()