From 390b204272e06a1b880ea63ae4f12183fb8dc555 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Wed, 18 Mar 2020 22:09:00 +0100 Subject: Rewrite federation settings --- server/src/api/community.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/src/api/community.rs') diff --git a/server/src/api/community.rs b/server/src/api/community.rs index a07b15d7..dac8733b 100644 --- a/server/src/api/community.rs +++ b/server/src/api/community.rs @@ -121,7 +121,7 @@ impl Perform for Oper { let data: &GetCommunity = &self.data; if data.name.is_some() - && Settings::get().federation_enabled + && Settings::get().federation.enabled && data.name.as_ref().unwrap().contains('@') { return get_remote_community(data.name.as_ref().unwrap()); @@ -344,7 +344,7 @@ impl Perform for Oper { let data: &ListCommunities = &self.data; let local_only = data.local_only.unwrap_or(false); - if Settings::get().federation_enabled && !local_only { + if Settings::get().federation.enabled && !local_only { return Ok(ListCommunitiesResponse { communities: get_all_communities()?, }); -- cgit v1.2.3