Small optimization for photo rail request size
This commit is contained in:
parent
f3d6f53f6d
commit
e0b141daf9
|
@ -17,6 +17,8 @@ proc genParams*(pars: openArray[(string, string)] = @[]; cursor="";
|
||||||
result &= p
|
result &= p
|
||||||
if ext:
|
if ext:
|
||||||
result &= ("ext", "mediaStats")
|
result &= ("ext", "mediaStats")
|
||||||
|
result &= ("include_ext_alt_text", "true")
|
||||||
|
result &= ("include_ext_media_availability", "true")
|
||||||
if count.len > 0:
|
if count.len > 0:
|
||||||
result &= ("count", count)
|
result &= ("count", count)
|
||||||
if cursor.len > 0:
|
if cursor.len > 0:
|
||||||
|
|
|
@ -35,16 +35,13 @@ const
|
||||||
"cards_platform": "Web-12",
|
"cards_platform": "Web-12",
|
||||||
"include_cards": "1",
|
"include_cards": "1",
|
||||||
"include_composer_source": "false",
|
"include_composer_source": "false",
|
||||||
"include_ext_alt_text": "true",
|
|
||||||
"include_reply_count": "1",
|
"include_reply_count": "1",
|
||||||
"tweet_mode": "extended",
|
"tweet_mode": "extended",
|
||||||
"include_entities": "true",
|
"include_entities": "true",
|
||||||
"include_user_entities": "true",
|
"include_user_entities": "true",
|
||||||
"include_ext_media_color": "false",
|
"include_ext_media_color": "false",
|
||||||
"include_ext_media_availability": "true",
|
|
||||||
"send_error_codes": "true",
|
"send_error_codes": "true",
|
||||||
"simple_quoted_tweet": "true",
|
"simple_quoted_tweet": "true",
|
||||||
"ext": "mediaStats",
|
|
||||||
"include_quote_count": "true"
|
"include_quote_count": "true"
|
||||||
}.toSeq
|
}.toSeq
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue