From 598da2ae0cb207c17c19ae0e08de6d3591942d06 Mon Sep 17 00:00:00 2001 From: Pluto Date: Sun, 26 Oct 2025 12:23:25 +0530 Subject: [PATCH] fix: download tracking call failing because call was not authorized --- src/LiveDevelopment/BrowserScripts/RemoteFunctions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LiveDevelopment/BrowserScripts/RemoteFunctions.js b/src/LiveDevelopment/BrowserScripts/RemoteFunctions.js index f4bb2aa50b..cd5a886b78 100644 --- a/src/LiveDevelopment/BrowserScripts/RemoteFunctions.js +++ b/src/LiveDevelopment/BrowserScripts/RemoteFunctions.js @@ -3114,9 +3114,9 @@ function RemoteFunctions(config = {}) { // its required by the Unsplash API guidelines to track downloads for photographers // this is just a tracking call, we don't need to wait for the response if (image.download_location) { - fetch(image.download_location) + fetch(`https://images.phcode.dev/api/images/download?download_location=${encodeURIComponent(image.download_location)}`) .catch(error => { - // + console.error('download tracking failed:', error); }); }