From fa5adac2975fbb751f8ea49cc5b2ab7ec8ccccb0 Mon Sep 17 00:00:00 2001 From: keyan Date: Sun, 21 Apr 2024 14:12:18 -0500 Subject: [PATCH] improve newsletter top stories format --- scripts/newsletter.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/newsletter.js b/scripts/newsletter.js index e5be3b92..f899f45d 100644 --- a/scripts/newsletter.js +++ b/scripts/newsletter.js @@ -171,9 +171,8 @@ Have a great weekend! ##### Top Posts ${top.data.items.items.slice(0, 10).map((item, i) => - `${i + 1}. [@${item.user.name}](https://stacker.news/${item.user.name}) [${item.title}](https://stacker.news/items/${item.id}) - - [${item.title}](https://stacker.news/items/${item.id}) - - ${abbrNum(item.sats)} sats${item.boost ? ` \\ ${abbrNum(item.boost)} boost` : ''} \\ ${item.ncomments} comments \\ [@${item.user.name}](https://stacker.news/${item.user.name})\n`).join('')} + `${i + 1}. [${item.title}](https://stacker.news/items/${item.id}) + - ${abbrNum(item.sats)} sats${item.boost ? ` \\ ${abbrNum(item.boost)} boost` : ''} \\ ${item.ncomments} comments \\ [@${item.user.name}](https://stacker.news/${item.user.name})\n`).join('')} ##### Don't miss ${top.data.items.items.map((item, i) =>