Fix crash if feed used with articles without links
Didn't realise this was possible...
This commit is contained in:
parent
80f49e5564
commit
96def786a4
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue