Problem
parseTweet() doesn't detect retweets (tweets where legacy.retweeted_status_result exists). Retweets are parsed and displayed as regular tweets with no indication.
Proposed solution
- Add an
isRetweet boolean field to the Tweet type
- Parse
legacy.retweeted_status_result to extract the original tweet info
- Add a
retweetOf field with the original author and tweet ID
- Add
--no-retweets flag to CLI commands that fetch timelines
interface Tweet {
// ... existing fields
isRetweet: boolean;
retweetOf?: { authorHandle: string; tweetId: string };
}
Why it matters
When analyzing a user's timeline, retweets can dominate the output. Users need to distinguish original content from amplified content.
Problem
parseTweet()doesn't detect retweets (tweets wherelegacy.retweeted_status_resultexists). Retweets are parsed and displayed as regular tweets with no indication.Proposed solution
isRetweetboolean field to theTweettypelegacy.retweeted_status_resultto extract the original tweet inforetweetOffield with the original author and tweet ID--no-retweetsflag to CLI commands that fetch timelinesWhy it matters
When analyzing a user's timeline, retweets can dominate the output. Users need to distinguish original content from amplified content.