add tweet_mode=extended to retweet

This commit is contained in:
gutmet 2020-10-19 08:05:57 +02:00
parent 0c0c53f9df
commit 7c56ae13e6

View File

@ -38,7 +38,7 @@ func UserTimelineParameters(flags userTimelineFlags, screenName string) string {
} }
func RetweetParameters(id string) string { func RetweetParameters(id string) string {
return id + ".json" return id + ".json?tweet_mode=extended"
} }
func LikeRequest(id string) url.Values { func LikeRequest(id string) url.Values {
@ -51,9 +51,10 @@ func LikeRequest(id string) url.Values {
func UnlikeRequest(id string) url.Values { func UnlikeRequest(id string) url.Values {
return map[string][]string{ return map[string][]string{
"id": {id}, "id": {id},
"tweet_mode": {"extended"},
} }
} }
func DestroyParameters(id string) string { func DestroyParameters(id string) string {
return id + ".json" return id + ".json?tweet_mode=extended"
} }