Skip to content

Commit

Permalink
avoid 403 when using twitter token with v1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
robertoszek committed Dec 6, 2022
1 parent 812e94b commit a0e01b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pleroma_bot/_twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,11 +416,13 @@ def _get_tweets(
"send_error_codes": "true",
"simple_quoted_tweet": "true",
"query_source": "typed_query",
"pc": "1",
"spelling_corrections": "1",
"ext": "mediaStats,highlightedLabel",

}
if self.guest: # pragma: todo
param.update({"pc": "1"})

response = self.twitter_api_request(
'GET',
twitter_status_url,
Expand Down

0 comments on commit a0e01b8

Please sign in to comment.