From: Dessalines Date: Wed, 7 Oct 2020 14:40:36 +0000 (-0500) Subject: Trimming allowed and blocked instances X-Git-Url: http://these/git/%22%7Burl%7D/%22https:/image.com/%7B%60%24%7BghostArchiveUrl%7D/%7BfrontRss%7D?a=commitdiff_plain;h=9fe3efcb322d6de8b8558b3032b3394837a78efe;p=lemmy.git Trimming allowed and blocked instances --- diff --git a/lemmy_utils/src/settings.rs b/lemmy_utils/src/settings.rs index d3775c4b..797c6fba 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 [""]