~cadence/bibliogram-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] fix crash in feeds with empty caption

Jakob Wenzel
Details
Message ID
<20210218210143.21588-1-jakobwenzel92@gmail.com>
DKIM signature
pass
Download raw message
Patch: +4 -3
---
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
Details
Message ID
<20210222231909.974fe3f0965fce6c14acba9a@disroot.org>
In-Reply-To
<20210218210143.21588-1-jakobwenzel92@gmail.com> (view parent)
DKIM signature
pass
Download raw message
Patch applied, thank you for the quick correction.
Reply to thread Export thread (mbox)