glanceapp / glance

A self-hosted dashboard that puts all your feeds in one place
GNU Affero General Public License v3.0
8.56k stars 297 forks source link

Fix RSS item link empty <link/> #197

Closed ccjjxl closed 3 months ago

ccjjxl commented 3 months ago

Fix RSS item link empty

panic: runtime error: index out of range [0] with length 0

goroutine 40 [running]:
github.com/glanceapp/glance/internal/feed.getItemsFromRSSFeedTask({{0xc000121aa0, 0x2a}, {0x0, 0x0}, 0x1, 0x1, {0x0, 0x0}})
    /home/ccjjxl/data/dev/glance/internal/feed/rss.go:103 +0xaaf
github.com/glanceapp/glance/internal/feed.workerPoolDo[...].func1()
    /home/ccjjxl/data/dev/glance/internal/feed/requests.go:193 +0x14d
created by github.com/glanceapp/glance/internal/feed.workerPoolDo[...] in goroutine 24
    /home/ccjjxl/data/dev/glance/internal/feed/requests.go:189 +0xff
exit status 2
svilenmarkov commented 3 months ago

Thanks for contributing!