Merge pull request #1613 from Wevah/empty-url
Treat empty URLs as nil for web feed home pages
This commit is contained in:
commit
cd1f6082d1
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue