We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4111ae commit d140da7Copy full SHA for d140da7
src/LiveDevelopment/BrowserScripts/RemoteFunctions.js
@@ -3167,9 +3167,9 @@ function RemoteFunctions(config = {}) {
3167
// its required by the Unsplash API guidelines to track downloads for photographers
3168
// this is just a tracking call, we don't need to wait for the response
3169
if (image.download_location) {
3170
- fetch(image.download_location)
+ fetch(`https://images.phcode.dev/api/images/download?download_location=${encodeURIComponent(image.download_location)}`)
3171
.catch(error => {
3172
- //
+ console.error('download tracking failed:', error);
3173
});
3174
}
3175
0 commit comments