From 55f591b37dab2633e9cab87284be23437aed63ee Mon Sep 17 00:00:00 2001 From: jj Date: Sun, 9 Feb 2025 11:59:10 +0000 Subject: [PATCH] api/instagram: add explanation for resolveRedirectingURL user-agent --- api/src/processing/services/instagram.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/src/processing/services/instagram.js b/api/src/processing/services/instagram.js index 80754595..93ea5630 100644 --- a/api/src/processing/services/instagram.js +++ b/api/src/processing/services/instagram.js @@ -522,6 +522,9 @@ export default function instagram(obj) { return resolveRedirectingURL( `https://www.instagram.com/share/${shareId}/`, dispatcher, + // for some reason instagram decides to return HTML + // instead of a redirect when requesting with a normal + // browser user-agent 'curl/7.88.1' ).then(match => instagram({ ...obj, ...match,