Use httpclient.Client instead of standard net/http

This commit is contained in:
kaimanhub 2025-04-08 19:54:18 +03:00
commit c42c391094
12 changed files with 33 additions and 10 deletions

View file

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