Ver código fonte

Check also sticky threads in news

ghorsington 5 anos atrás
pai
commit
9b2e117e8d
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      bot/src/commands/forums_news_checker.ts

+ 1 - 1
bot/src/commands/forums_news_checker.ts

@@ -63,7 +63,7 @@ async function checkFeeds() {
 
     let forumThreads = await forumClient.getForumThreads(NEWS_FORUM_ID);
 
-    for (let thread of forumThreads.threads) {
+    for (let thread of [...forumThreads.threads, ...forumThreads.sticky]) {
         let firstPost = await forumClient.getPost(thread.first_post_id);
 
         let contents = bbCodeToMarkdown(firstPost.message);