Fix search cursor

This commit is contained in:
Alexander Sheiko 2021-03-31 15:12:39 +03:00
parent 0533b6e909
commit 9a85dfa062
4 changed files with 36 additions and 3 deletions

View file

@ -225,6 +225,9 @@ func parseTimeline(timeline *timeline) ([]*Tweet, string) {
cursor = entry.Content.Operation.Cursor.Value
}
}
if instruction.ReplaceEntry.Entry.Content.Operation.Cursor.CursorType == "Bottom" {
cursor = instruction.ReplaceEntry.Entry.Content.Operation.Cursor.Value
}
}
if pinnedTweet != nil && len(orderedTweets) > 0 {
orderedTweets = append([]*Tweet{pinnedTweet}, orderedTweets...)