mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-22 13:29:21 +00:00
Fix issue with empty links in banners
This commit is contained in:
parent
1d21ba0ecc
commit
5da5de1c4d
@ -195,7 +195,11 @@ impl Config {
|
||||
.collect(),
|
||||
link: parsed_banner["link"].as_str()
|
||||
.map(str::to_string)
|
||||
.map(Self::parse_string_val),
|
||||
.map(Self::parse_string_val)
|
||||
.and_then(|s| match s.is_empty() {
|
||||
true => None,
|
||||
false => Some(s)
|
||||
}),
|
||||
})
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user