Skip to content

Commit

Permalink
api/instagram: add a filename to all single images
Browse files Browse the repository at this point in the history
  • Loading branch information
wukko committed Feb 9, 2025
1 parent 55f591b commit 6e653f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/src/processing/services/instagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,8 @@ export default function instagram(obj) {
if (shortcodeMedia?.display_url) {
return {
urls: shortcodeMedia.display_url,
isPhoto: true
isPhoto: true,
filename: `instagram_${id}.jpg`,
}
}
}
Expand Down Expand Up @@ -509,7 +510,8 @@ export default function instagram(obj) {
if (item.image_versions2?.candidates) {
return {
urls: item.image_versions2.candidates[0].url,
isPhoto: true
isPhoto: true,
filename: `instagram_${id}.jpg`,
}
}

Expand Down

0 comments on commit 6e653f4

Please sign in to comment.