This commit is contained in:
afkarxyz committed 2026-07-16 18:27:23 +07:00
1 parent 3fb8bda2ff
commit 2ada5da9bf
12 files changed
+164 -116

No files matched your search

+2 -3
View File
@@ -698,11 +698,10 @@ func ExtractTimeline(req TimelineRequest) (*TwitterResponse, error) {
}
includeText := req.IncludeText
wantsRetweets := req.Retweets
timelineType := req.TimelineType
if timelineType == "" {
if includeText || wantsRetweets {
if includeText {
timelineType = "tweets"
} else {
timelineType = "media"
@@ -725,7 +724,7 @@ func ExtractTimeline(req TimelineRequest) (*TwitterResponse, error) {
args = append(args, "--limit", fmt.Sprintf("%d", req.BatchSize))
}
if timelineType == "tweets" || timelineType == "timeline" {
if timelineType == "tweets" || timelineType == "timeline" || timelineType == "media" {
if req.Retweets {
args = append(args, "--retweets", "include")
} else {