Update processJsonPost.js to remove newlines from selftext_preview
This commit is contained in:
parent
319fa35d5f
commit
6328e41bcf
|
@ -155,7 +155,7 @@ async function processJsonPost(json, parsed, user_preferences) {
|
|||
images: null,
|
||||
crosspost: false,
|
||||
selftext: unescape(post.selftext_html),
|
||||
selftext_preview: post.selftext.substr(0, 120),
|
||||
selftext_preview: post.selftext.substr(0, 120).replace(/\n/g, ' '),
|
||||
poll_data: post.poll_data,
|
||||
link_flair:
|
||||
user_preferences.flairs != 'false' ? await formatLinkFlair(post) : '',
|
||||
|
|
Loading…
Reference in New Issue