minor fix
This commit is contained in:
parent
4b7a8679f2
commit
c5774c3a5a
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ func (s *Storage) CreateFeed(title, description, link, feedLink string, folderId
|
|||
title = link
|
||||
// use domain if possible
|
||||
linkUrl, err := url.Parse(link)
|
||||
if err != nil && len(linkUrl.Host) > 0 && len(linkUrl.Path) <= 1 {
|
||||
if err == nil && linkUrl.Host != "" && len(linkUrl.Path) <= 1 {
|
||||
title = linkUrl.Host
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue