From 0786312febebf2ba9ec1c6b0355dcbaf0e7b98b5 Mon Sep 17 00:00:00 2001 From: stefanodvx <69367859+stefanodvx@users.noreply.github.com> Date: Sun, 20 Apr 2025 01:07:02 +0200 Subject: [PATCH] instagram: fix public instance with edge proxy --- ext/instagram/util.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/instagram/util.go b/ext/instagram/util.go index 6a489d4..b059b3a 100644 --- a/ext/instagram/util.go +++ b/ext/instagram/util.go @@ -97,6 +97,7 @@ func GetCDNURL(contentURL string) (string, error) { func GetPostCaption( postURL string, ) (string, error) { + edgeProxyClient := util.GetEdgeProxyClient() req, err := http.NewRequest( http.MethodGet, postURL, @@ -120,7 +121,7 @@ func GetPostCaption( req.Header.Set("Cache-Control", "no-cache") req.Header.Set("TE", "trailers") - resp, err := httpSession.Do(req) + resp, err := edgeProxyClient.Do(req) if err != nil { return "", fmt.Errorf("failed to send request: %w", err) }