Treat empty URLs as nil

Fixes #1612.
This commit is contained in:
Nate Weaver 2020-01-12 03:29:56 -06:00
parent a8951089c3
commit 42b4261793

View File

@ -42,7 +42,7 @@ public final class WebFeed: Feed, Renamable, Hashable {
return metadata.homePageURL
}
set {
if let url = newValue {
if let url = newValue, !url.isEmpty {
metadata.homePageURL = url.rs_normalizedURL()
}
else {