]> Untitled Git - lemmy.git/commitdiff
Adding open_registration to nodeinfo.
authorDessalines <tyhou13@gmx.com>
Tue, 31 Dec 2019 15:44:30 +0000 (10:44 -0500)
committerDessalines <tyhou13@gmx.com>
Tue, 31 Dec 2019 15:44:30 +0000 (10:44 -0500)
server/src/main.rs
server/src/routes/nodeinfo.rs

index bf105323cabc2dde0dc267be30ced6a092395989..cc1cbcec4eb63b27bfa77b6cbb4f3b4535b6df7a 100644 (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!();
index 3165aea1207041ec612fa639dd436bcc6ec20128..cbc0fb0fcb2472adf6ac687a1627250031b68ac9 100644 (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()