api: merge two picker types into one

This commit is contained in:
wukko
2024-08-06 21:30:18 +06:00
parent ac6d68ec45
commit 95f5fd978f
2 changed files with 11 additions and 15 deletions

View File

@@ -96,7 +96,10 @@ export default async function(obj) {
if (images) {
let imageLinks = images
.map(i => i.imageURL.urlList.find(p => p.includes(".jpeg?")))
.map(url => ({ url }));
.map(url => ({
type: "photo",
url
}));
return {
picker: imageLinks,