Skip to content

Comments

Provide Tweet.OrderedMedia to keep the original order of tweet media#46

Open
rainux wants to merge 1 commit intoimperatrona:masterfrom
rainux:master
Open

Provide Tweet.OrderedMedia to keep the original order of tweet media#46
rainux wants to merge 1 commit intoimperatrona:masterfrom
rainux:master

Conversation

@rainux
Copy link

@rainux rainux commented Apr 15, 2025

Currently the Tweet struct has separate field for Photos, Videos and GIFs, which is easier for use.

But for a tweet with different kind of media, this approach lost the original order of the media, so this PR try to give back the order with a OrderedMedia field which is an array of UnifiedMedia type.

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.

1 participant