Fix crashing on failing to parse the 'messageprompt' entry telling you to subscribe to twitter blue

This commit is contained in:
Alessio 2023-08-22 19:52:04 -03:00
parent 134b17ee79
commit e09c97a85e

View File

@ -463,6 +463,9 @@ func (e APIV2Entry) ToTweetTrove() TweetTrove {
// TODO: user feed tombstone entries
return NewTweetTrove()
}
if strings.Split(e.EntryID, "-")[0] == "messageprompt" {
return NewTweetTrove()
}
ret, err := e.Content.ItemContent.TweetResults.ToTweetTrove()
// Handle tombstones in parent reply thread