mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 11:02:24 -05:00
Use httpclient.Client instead of standard net/http
This commit is contained in:
parent
d11efa1e2f
commit
c42c391094
12 changed files with 33 additions and 10 deletions
|
|
@ -190,9 +190,9 @@ func (p *Processor) Create(
|
|||
}
|
||||
|
||||
// Get preview card
|
||||
card, errWithCode := FetchPreview(content.Content)
|
||||
card, errWithCode := FetchPreview(ctx, p.client, content.Content)
|
||||
if errWithCode != nil {
|
||||
return nil, errWithCode
|
||||
log.Errorf(ctx, "error loading preview card: %v", errWithCode)
|
||||
}
|
||||
|
||||
if card != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue