mirror of
https://github.com/nkanaev/yarr.git
synced 2025-07-08 16:00:11 +00:00
minor fix
This commit is contained in:
parent
4b7a8679f2
commit
c5774c3a5a
@ -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…
x
Reference in New Issue
Block a user