mirror of https://github.com/LemmyNet/lemmy.git
Trimming allowed and blocked instances
parent
30431199cf
commit
9fe3efcb32
|
@ -134,7 +134,7 @@ impl Settings {
|
||||||
.federation
|
.federation
|
||||||
.allowed_instances
|
.allowed_instances
|
||||||
.split(',')
|
.split(',')
|
||||||
.map(|d| d.to_string())
|
.map(|d| d.trim().to_string())
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
// The defaults.hjson config always returns a [""]
|
// The defaults.hjson config always returns a [""]
|
||||||
|
@ -148,7 +148,7 @@ impl Settings {
|
||||||
.federation
|
.federation
|
||||||
.blocked_instances
|
.blocked_instances
|
||||||
.split(',')
|
.split(',')
|
||||||
.map(|d| d.to_string())
|
.map(|d| d.trim().to_string())
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
// The defaults.hjson config always returns a [""]
|
// The defaults.hjson config always returns a [""]
|
||||||
|
|
Loading…
Reference in New Issue