Fix RSS item link empty <link/>

This commit is contained in:
ccjjxl 2024-08-22 17:24:00 +08:00
parent b37f8a8375
commit 2a3f8eedf6

View File

@ -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