Fix crash if feed used with articles without links

Didn't realise this was possible...
This commit is contained in:
benji7425 2017-11-27 09:35:30 +00:00
parent 80f49e5564
commit 96def786a4
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
# Changelog # Changelog
## Unreleased
### Fixed
- Temporary fix for bot crash if used with a feed without links in the articles (didn't realise this was possible...)
## v3.1.3 ## v3.1.3
### Added ### Added
- Add rudimentary pagination for viewing feeds when there are more than 10 - Add rudimentary pagination for viewing feeds when there are more than 10

View File

@ -74,7 +74,7 @@ module.exports = class FeedData {
return; return;
} }
if (articles.length > 0) { if (articles.length > 0 && articles[0].link) {
const latest = normaliseUrl(articles[0].link); const latest = normaliseUrl(articles[0].link);