[twitter] fix pinned tweets (#2216)

caused by the changes in dffa440ede
This commit is contained in:
Mike Fährmann
2022-01-23 22:52:57 +01:00
parent a9f78e6527
commit 5ed26e1773

View File

@@ -1083,8 +1083,7 @@ class TwitterAPI():
if pinned_tweet: if pinned_tweet:
pinned_tweet = False pinned_tweet = False
if instructions[-1]["type"] == "TimelinePinEntry": if instructions[-1]["type"] == "TimelinePinEntry":
tweets.append(instructions[-1]["entry"]["content"] tweets.append(instructions[-1]["entry"])
["itemContent"]["tweet_results"]["result"])
for entry in entries: for entry in entries:
esw = entry["entryId"].startswith esw = entry["entryId"].startswith