[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:
pinned_tweet = False
if instructions[-1]["type"] == "TimelinePinEntry":
tweets.append(instructions[-1]["entry"]["content"]
["itemContent"]["tweet_results"]["result"])
tweets.append(instructions[-1]["entry"])
for entry in entries:
esw = entry["entryId"].startswith