From 9fe3efcb322d6de8b8558b3032b3394837a78efe Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 7 Oct 2020 09:40:36 -0500 Subject: [PATCH] Trimming allowed and blocked instances --- lemmy_utils/src/settings.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lemmy_utils/src/settings.rs b/lemmy_utils/src/settings.rs index d3775c4b4..797c6fba1 100644 --- a/lemmy_utils/src/settings.rs +++ b/lemmy_utils/src/settings.rs @@ -134,7 +134,7 @@ impl Settings { .federation .allowed_instances .split(',') - .map(|d| d.to_string()) + .map(|d| d.trim().to_string()) .collect(); // The defaults.hjson config always returns a [""] @@ -148,7 +148,7 @@ impl Settings { .federation .blocked_instances .split(',') - .map(|d| d.to_string()) + .map(|d| d.trim().to_string()) .collect(); // The defaults.hjson config always returns a [""]