From d92ab353fd159b61fad66f1d202a49864b9d79c9 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() `)