diff --git a/plugins/reddit.js b/plugins/reddit.js index 79394dbe0..600ccac77 100644 --- a/plugins/reddit.js +++ b/plugins/reddit.js @@ -150,9 +150,13 @@ async function importComments(accountName, afterId = null) { const dateTimeStr = utils.dateStr(new Date(comment.created_utc * 1000)); + const permaLink = 'https://reddit.com' + comment.permalink; + const noteText = - `
-author: ${comment.author}, subreddit: ${comment.subreddit}, karma: ${comment.score}, created at ${dateTimeStr}
` +` +author: ${comment.author}, +subreddit: ${comment.subreddit}, +karma: ${comment.score}, created at ${dateTimeStr}
` + unescape(comment.body_html); let parentNoteId = await getDateNoteIdForReddit(dateTimeStr, rootNoteId);