Skip to content

fix: getLatestTweet should skip pinned tweet#196

Closed
mohamedorigami-jpg wants to merge 1 commit into
the-convocation:mainfrom
mohamedorigami-jpg:main
Closed

fix: getLatestTweet should skip pinned tweet#196
mohamedorigami-jpg wants to merge 1 commit into
the-convocation:mainfrom
mohamedorigami-jpg:main

Conversation

@mohamedorigami-jpg

Copy link
Copy Markdown

Closes #164

Updates getLatestTweet() to filter out pinned tweets when iterating
through the user timeline. Pinned tweets always appear first in the
timeline response, so they were being returned as the 'latest' tweet.

The Tweet type already had an isPin field populated by both the V1 and
V2 timeline parsers, so this just adds a check in getLatestTweet to
skip any tweet where isPin is true.

Closes #164
@mohamedorigami-jpg mohamedorigami-jpg closed this by deleting the head repository Jun 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

getLatestTweet returns pinned tweet instead of latest

1 participant