mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-18 17:16:20 +01:00
api/instagram: add a filename to all single images
This commit is contained in:
parent
55f591b37d
commit
6e653f468b
1 changed files with 4 additions and 2 deletions
|
@ -352,7 +352,8 @@ export default function instagram(obj) {
|
||||||
if (shortcodeMedia?.display_url) {
|
if (shortcodeMedia?.display_url) {
|
||||||
return {
|
return {
|
||||||
urls: shortcodeMedia.display_url,
|
urls: shortcodeMedia.display_url,
|
||||||
isPhoto: true
|
isPhoto: true,
|
||||||
|
filename: `instagram_${id}.jpg`,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -509,7 +510,8 @@ export default function instagram(obj) {
|
||||||
if (item.image_versions2?.candidates) {
|
if (item.image_versions2?.candidates) {
|
||||||
return {
|
return {
|
||||||
urls: item.image_versions2.candidates[0].url,
|
urls: item.image_versions2.candidates[0].url,
|
||||||
isPhoto: true
|
isPhoto: true,
|
||||||
|
filename: `instagram_${id}.jpg`,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue