summaryrefslogtreecommitdiffstats
path: root/server/src/routes/federation.rs
diff options
context:
space:
mode:
authornutomic <nutomic@noreply.yerbamate.dev>2020-07-10 18:15:41 +0000
committerdessalines <dessalines@noreply.yerbamate.dev>2020-07-10 18:15:41 +0000
commit80aef61aed29d25099835ee4769bb8e1e363eb47 (patch)
tree8c83a360256c615db2ab749aeb29d73ae30895a0 /server/src/routes/federation.rs
parentdebbd316c271f8867917a9eb8c4caa5c26093d66 (diff)
Split code into cargo workspaces (#67)
More fixes - fixed docker builds - fixed mentions regex test - fixed DATABASE_URL stuff - change schema path in diesel.toml Address review comments - add jsonb column back into activity table - remove authors field from cargo.toml - adjust LEMMY_DATABASE_URL env var usage - rename all occurences of LEMMY_DATABASE_URL to DATABASE_URL Decouple utils and db Split code into cargo workspaces Co-authored-by: Felix Ableitner <me@nutomic.com> Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/67
Diffstat (limited to 'server/src/routes/federation.rs')
-rw-r--r--server/src/routes/federation.rs22
1 files changed, 10 insertions, 12 deletions
diff --git a/server/src/routes/federation.rs b/server/src/routes/federation.rs
index fe6e3365..ebab139a 100644
--- a/server/src/routes/federation.rs
+++ b/server/src/routes/federation.rs
@@ -1,17 +1,15 @@
-use crate::{
- apub::{
- comment::get_apub_comment,
- community::*,
- community_inbox::community_inbox,
- post::get_apub_post,
- shared_inbox::shared_inbox,
- user::*,
- user_inbox::user_inbox,
- APUB_JSON_CONTENT_TYPE,
- },
- settings::Settings,
+use crate::apub::{
+ comment::get_apub_comment,
+ community::*,
+ community_inbox::community_inbox,
+ post::get_apub_post,
+ shared_inbox::shared_inbox,
+ user::*,
+ user_inbox::user_inbox,
+ APUB_JSON_CONTENT_TYPE,
};
use actix_web::*;
+use lemmy_utils::settings::Settings;
pub fn config(cfg: &mut web::ServiceConfig) {
if Settings::get().federation.enabled {