瀏覽代碼

Fix "Show this thread" for pinned threads

Zed 3 年之前
父節點
當前提交
b1ef505cff
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/parser.nim

+ 4 - 0
src/parser.nim

@@ -206,6 +206,10 @@ proc parseTweet(js: JsonNode): Tweet =
     )
   )
 
+  # fix for pinned threads
+  if result.hasThread and result.threadId == 0:
+    result.threadId = js{"self_thread", "id_str"}.getId
+
   result.expandTweetEntities(js)
 
   if js{"is_quote_status"}.getBool: