Ver Fonte

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

PrivacyDevel há 3 anos atrás
pai
commit
f7e878c126
1 ficheiros alterados com 4 adições e 0 exclusões
  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