mirror of
https://github.com/glanceapp/glance.git
synced 2024-11-20 17:32:23 +03:00
Fix RSS item link empty <link/>
This commit is contained in:
parent
b37f8a8375
commit
2a3f8eedf6
@ -98,7 +98,7 @@ func getItemsFromRSSFeedTask(request RSSFeedRequest) ([]RSSFeedItem, error) {
|
||||
if err == nil {
|
||||
var link string
|
||||
|
||||
if item.Link[0] == '/' {
|
||||
if len(item.Link) > 0 && item.Link[0] == '/' {
|
||||
link = item.Link
|
||||
} else {
|
||||
link = "/" + item.Link
|
||||
|
Loading…
Reference in New Issue
Block a user