Small optimization for photo rail request size

This commit is contained in:
Zed 2022-01-17 03:21:38 +01:00
parent f3d6f53f6d
commit e0b141daf9
2 changed files with 2 additions and 3 deletions

View file

@ -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:

View file

@ -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