[twitter] quick and dirty fix for /media changes (#4898)
This commit is contained in:
@@ -1439,7 +1439,12 @@ class TwitterAPI():
|
|||||||
for instr in instructions:
|
for instr in instructions:
|
||||||
instr_type = instr.get("type")
|
instr_type = instr.get("type")
|
||||||
if instr_type == "TimelineAddEntries":
|
if instr_type == "TimelineAddEntries":
|
||||||
entries = instr["entries"]
|
if entries:
|
||||||
|
entries.extend(instr["entries"])
|
||||||
|
else:
|
||||||
|
entries = instr["entries"]
|
||||||
|
elif instr_type == "TimelineAddToModule":
|
||||||
|
entries = instr["moduleItems"]
|
||||||
elif instr_type == "TimelineReplaceEntry":
|
elif instr_type == "TimelineReplaceEntry":
|
||||||
entry = instr["entry"]
|
entry = instr["entry"]
|
||||||
if entry["entryId"].startswith("cursor-bottom-"):
|
if entry["entryId"].startswith("cursor-bottom-"):
|
||||||
@@ -1487,6 +1492,11 @@ class TwitterAPI():
|
|||||||
|
|
||||||
if esw("tweet-"):
|
if esw("tweet-"):
|
||||||
tweets.append(entry)
|
tweets.append(entry)
|
||||||
|
elif esw("profile-grid-"):
|
||||||
|
if "content" in entry:
|
||||||
|
tweets.extend(entry["content"]["items"])
|
||||||
|
else:
|
||||||
|
tweets.append(entry)
|
||||||
elif esw(("homeConversation-",
|
elif esw(("homeConversation-",
|
||||||
"profile-conversation-",
|
"profile-conversation-",
|
||||||
"conversationthread-")):
|
"conversationthread-")):
|
||||||
|
|||||||
Reference in New Issue
Block a user