From fb8c95c0ba9a46f0d6c488a38888e0ded25273cf Mon Sep 17 00:00:00 2001 From: k00b Date: Wed, 26 Mar 2025 15:20:13 -0500 Subject: [PATCH] let OP get full referral and add comments to social poster --- worker/socialPoster.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worker/socialPoster.js b/worker/socialPoster.js index 77cb418f..ee5b3526 100644 --- a/worker/socialPoster.js +++ b/worker/socialPoster.js @@ -92,10 +92,10 @@ async function getHottestItem ({ models }) { async function itemToMessage ({ item }) { return `${item.title} -by ${item.userName} to ~${item.subName} -${numWithUnits(msatsToSats(item.msats), { abbreviate: false })} so far +by ${item.userName} in ~${item.subName} +${numWithUnits(msatsToSats(item.msats), { abbreviate: false })} and ${numWithUnits(item.ncomments, { abbreviate: false, unitSingular: 'comment', unitPlural: 'comments' })} so far -https://stacker.news/items/${item.id}/r/sn` +https://stacker.news/items/${item.id}` } export async function postToSocial ({ models }) {