feat: expand media URLs in tweet
This commit is contained in:
parent
9f31f3890f
commit
cc1eb793d6
3 changed files with 29 additions and 18 deletions
|
|
@ -56,6 +56,7 @@ func (result *result) parse() *Tweet {
|
|||
if result.QuotedStatusResult.Result != nil {
|
||||
tw.QuotedStatus = result.QuotedStatusResult.Result.parse()
|
||||
}
|
||||
tw.HTML = expandMediaURLs(tw.HTML, legacy.ExtendedEntities.Media)
|
||||
return tw
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue