Skip to content

Commit

Permalink
Small optimization for photo rail request size
Browse files Browse the repository at this point in the history
  • Loading branch information
zedeus committed Jan 17, 2022
1 parent f3d6f53 commit e0b141d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/apiutils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ proc genParams*(pars: openArray[(string, string)] = @[]; cursor="";
result &= p
if ext:
result &= ("ext", "mediaStats")
result &= ("include_ext_alt_text", "true")
result &= ("include_ext_media_availability", "true")
if count.len > 0:
result &= ("count", count)
if cursor.len > 0:
Expand Down
3 changes: 0 additions & 3 deletions src/consts.nim
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,13 @@ const
"cards_platform": "Web-12",
"include_cards": "1",
"include_composer_source": "false",
"include_ext_alt_text": "true",
"include_reply_count": "1",
"tweet_mode": "extended",
"include_entities": "true",
"include_user_entities": "true",
"include_ext_media_color": "false",
"include_ext_media_availability": "true",
"send_error_codes": "true",
"simple_quoted_tweet": "true",
"ext": "mediaStats",
"include_quote_count": "true"
}.toSeq

Expand Down

0 comments on commit e0b141d

Please sign in to comment.