Merge pull request #1613 from Wevah/empty-url

Treat empty URLs as nil for web feed home pages
This commit is contained in:
Brent Simmons
2020-01-12 11:41:44 -08:00
committed by GitHub

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 {