update tests

This commit is contained in:
Valentine 2025-01-23 03:13:18 +03:00
parent c269a9ba92
commit 3684e678e3
3 changed files with 9 additions and 11 deletions

View file

@ -308,7 +308,7 @@ func parseLegacyTweet(user *legacyUser, tweet *legacyTweet) *Tweet {
tw.HTML = reTwitterURL.ReplaceAllStringFunc(tw.HTML, func(tco string) string {
for _, entity := range tweet.Entities.URLs {
if tco == entity.URL {
return fmt.Sprintf(`<a href="%s">%s</a>`, entity.ExpandedURL, tco)
return fmt.Sprintf(`<a href="%s">%s</a>`, entity.ExpandedURL, entity.ExpandedURL)
}
}
for _, entity := range tweet.ExtendedEntities.Media {