Fix crash if feed used with articles without links
Didn't realise this was possible...
This commit is contained in:
parent
f3ef44b76a
commit
990cd60425
|
@ -1,5 +1,9 @@
|
|||
# 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
|
||||
### Added
|
||||
- Add rudimentary pagination for viewing feeds when there are more than 10
|
||||
|
|
|
@ -74,7 +74,7 @@ module.exports = class FeedData {
|
|||
return;
|
||||
}
|
||||
|
||||
if (articles.length > 0) {
|
||||
if (articles.length > 0 && articles[0].link) {
|
||||
|
||||
const latest = normaliseUrl(articles[0].link);
|
||||
|
||||
|
|
Loading…
Reference in New Issue