]> Untitled Git - lemmy.git/commitdiff
Trimming allowed and blocked instances
authorDessalines <tyhou13@gmx.com>
Wed, 7 Oct 2020 14:40:36 +0000 (09:40 -0500)
committerDessalines <tyhou13@gmx.com>
Wed, 7 Oct 2020 14:40:36 +0000 (09:40 -0500)
lemmy_utils/src/settings.rs

index d3775c4b4d6ccf29032452ef3496a95fa452d49e..797c6fba1116c744b10f445f66096d8bb9b80e1f 100644 (file)
@@ -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 [""]