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
commit cd1f6082d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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 {