瀏覽代碼

fixed bug that caused threads on user profiles to be hidden (#885)

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

+ 4 - 0
src/parser.nim

@@ -490,6 +490,10 @@ proc parseGraphTimeline*(js: JsonNode; root: string; after=""): Timeline =
             if not tweet.available:
               tweet.id = parseBiggestInt(entryId.getId())
             result.content.add tweet
+        elif entryId.startsWith("profile-conversation") or entryId.startsWith("homeConversation"):
+          let (thread, self) = parseGraphThread(e)
+          for tweet in thread.content:
+            result.content.add tweet
         elif entryId.startsWith("cursor-bottom"):
           result.bottom = e{"content", "value"}.getStr