feat: expand media URLs in tweet

This commit is contained in:
thewh1teagle 2024-11-08 21:41:52 +02:00
parent 9f31f3890f
commit cc1eb793d6
No known key found for this signature in database
3 changed files with 29 additions and 18 deletions

View file

@ -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
}