mirror of
https://github.com/glanceapp/glance.git
synced 2025-06-21 18:31:24 +02: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 {
|
if err == nil {
|
||||||
var link string
|
var link string
|
||||||
|
|
||||||
if item.Link[0] == '/' {
|
if len(item.Link) > 0 && item.Link[0] == '/' {
|
||||||
link = item.Link
|
link = item.Link
|
||||||
} else {
|
} else {
|
||||||
link = "/" + item.Link
|
link = "/" + item.Link
|
||||||
|
Loading…
x
Reference in New Issue
Block a user