Explorar o código

Check also sticky threads in news

ghorsington %!s(int64=5) %!d(string=hai) anos
pai
achega
9b2e117e8d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);