From 7fd90bce54235b90a625182bfc232fcde928e98a Mon Sep 17 00:00:00 2001 From: Jakob Wenzel Date: Thu, 18 Feb 2021 22:01:43 +0100 Subject: [PATCH] fix crash in feeds with empty caption --- src/lib/structures/TimelineEntry.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/structures/TimelineEntry.js b/src/lib/structures/TimelineEntry.js index 5676f86..253f76c 100644 --- a/src/lib/structures/TimelineEntry.js +++ b/src/lib/structures/TimelineEntry.js @@ -8,9 +8,10 @@ const TimelineChild = require("./TimelineChild") require("../testimports")(collectors, TimelineChild, TimelineBaseMethods) const rssDescriptionTemplate = compile(` -each line in caption.split("\\n") - = line - br +if caption + each line in caption.split("\\n") + = line + br each child in children != child.getFeedItem() `)