quote friday fact in newsletter
This commit is contained in:
parent
c23e49872a
commit
5ef2c3d839
|
@ -77,6 +77,8 @@ async function bountyWinner (q) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function main () {
|
async function main () {
|
||||||
|
const { quote } = await import('../lib/md.js')
|
||||||
|
|
||||||
const top = await client.query({
|
const top = await client.query({
|
||||||
query: ITEMS,
|
query: ITEMS,
|
||||||
variables: { sort: 'top', when: 'week' }
|
variables: { sort: 'top', when: 'week' }
|
||||||
|
@ -122,7 +124,7 @@ ${meta.data.items.items.slice(0, 10).map((item, i) =>
|
||||||
[**all monday memes**](https://stacker.news/items/${topMeme.bounty})
|
[**all monday memes**](https://stacker.news/items/${topMeme.bounty})
|
||||||
|
|
||||||
##### Top Friday fun fact \\ ${abbrNum(topFact.winner.sats)} sats \\ [@${topFact.winner.user.name}](https://stacker.news/${topFact.winner.user.name})
|
##### Top Friday fun fact \\ ${abbrNum(topFact.winner.sats)} sats \\ [@${topFact.winner.user.name}](https://stacker.news/${topFact.winner.user.name})
|
||||||
${topFact.winner.text}
|
${quote(topFact.winner.text)}
|
||||||
|
|
||||||
[**all friday fun facts**](https://stacker.news/items/${topFact.bounty})
|
[**all friday fun facts**](https://stacker.news/items/${topFact.bounty})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue