let OP get full referral and add comments to social poster

This commit is contained in:
k00b 2025-03-26 15:20:13 -05:00
parent ec7b05830a
commit fb8c95c0ba

View File

@ -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 }) {