Skip to content

Commit

Permalink
fix: support tweet bookmark timeline v2
Browse files Browse the repository at this point in the history
  • Loading branch information
lcomplete committed Apr 10, 2023
1 parent 6e95bfc commit 81f0b24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ private static TweetsRoot.Timeline getTimeline(TweetsRoot root) {
}
} else if (root.data.bookmark_timeline != null) {
timeline = root.data.bookmark_timeline.timeline;
} else if (root.data.bookmark_timeline_v2 != null) {
timeline = root.data.bookmark_timeline_v2.timeline;
} else if (root.data.viewer != null && root.data.viewer.communities_timeline != null) {
timeline = root.data.viewer.communities_timeline.timeline;
} else if (root.data.user != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ public static class Data {
public Timeline threaded_conversation_with_injections_v2;

public BookmarkTimeline bookmark_timeline;

public BookmarkTimeline bookmark_timeline_v2;

public Viewer viewer;

Expand Down

0 comments on commit 81f0b24

Please sign in to comment.