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 authored and GitHub committed 2020-01-12 11:41:44 -08:00
commit cd1f6082d1
1 file changed
+1 -1
+1 -1
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 {