~cadence/bibliogram-devel

fix crash in feeds with empty caption v1 APPLIED

Jakob Wenzel
Jakob Wenzel: 1
 fix crash in feeds with empty caption

 1 files changed, 4 insertions(+), 3 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~cadence/bibliogram-devel/patches/20353/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] fix crash in feeds with empty caption Export this patch

Jakob Wenzel
---
My first patch broke feeds with items without captions. Sorry.

 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()
`)
-- 
2.29.2
Patch applied, thank you for the quick correction.