Explorar o código

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

PrivacyDevel %!s(int64=3) %!d(string=hai) anos
pai
achega
f7e878c126
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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