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
|
return metadata.homePageURL
|
||||||
}
|
}
|
||||||
set {
|
set {
|
||||||
if let url = newValue {
|
if let url = newValue, !url.isEmpty {
|
||||||
metadata.homePageURL = url.rs_normalizedURL()
|
metadata.homePageURL = url.rs_normalizedURL()
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue