feat: single function to expand URLs
This commit is contained in:
parent
cc1eb793d6
commit
40066f125a
2 changed files with 6 additions and 9 deletions
|
|
@ -56,7 +56,8 @@ func (result *result) parse() *Tweet {
|
|||
if result.QuotedStatusResult.Result != nil {
|
||||
tw.QuotedStatus = result.QuotedStatusResult.Result.parse()
|
||||
}
|
||||
tw.HTML = expandMediaURLs(tw.HTML, legacy.ExtendedEntities.Media)
|
||||
tw.HTML = expandURLs(tw.HTML, legacy.Entities.URLs, legacy.ExtendedEntities.Media)
|
||||
tw.HTML = expandURLs(tw.Text, legacy.Entities.URLs, legacy.ExtendedEntities.Media)
|
||||
return tw
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue