Browse Source

Adding open_registration to nodeinfo.

Nutomic-actix-config
Dessalines 2 years ago
parent
commit
cd9df4455e
  1. 7
      server/src/main.rs
  2. 2
      server/src/routes/nodeinfo.rs

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

2
server/src/routes/nodeinfo.rs

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

Loading…
Cancel
Save