mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-13 22:26:28 +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) {
|
||||
return {
|
||||
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) {
|
||||
return {
|
||||
urls: item.image_versions2.candidates[0].url,
|
||||
isPhoto: true
|
||||
isPhoto: true,
|
||||
filename: `instagram_${id}.jpg`,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue