From: Dessalines Date: Wed, 7 Oct 2020 14:40:36 +0000 (-0500) Subject: Trimming allowed and blocked instances X-Git-Url: http://these/git/%7B%27/docs/static/%7B?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 [""]