Merge pull request #197 from ccjjxl/bugfix_rss

Fix RSS item link empty <link/>
This commit is contained in:
Svilen Markov 2024-08-22 11:16:33 +01:00 committed by GitHub
commit 7ce87c7168
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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