瀏覽代碼

Check also sticky threads in news

ghorsington 5 年之前
父節點
當前提交
9b2e117e8d
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);