more formatting
This commit is contained in:
parent
214c393a27
commit
b59b948bc1
1 changed files with 15 additions and 7 deletions
|
|
@ -687,13 +687,21 @@ SQL
|
|||
attachmentLoop => do {
|
||||
if ($post->get('storageId')) {
|
||||
my $storage = $post->getStorageLocation;
|
||||
[map {
|
||||
({ 'attachment.url' => $storage->getUrl($_),
|
||||
'attachment.path' => $storage->getPath($_),
|
||||
'attachment.length' => $storage->getFileSize($_) })
|
||||
} @{$storage->getFiles}]
|
||||
} else { undef }
|
||||
}
|
||||
#returns this
|
||||
[
|
||||
map {
|
||||
({
|
||||
'attachment.url' => $storage->getUrl($_),
|
||||
'attachment.path' => $storage->getPath($_),
|
||||
'attachment.length' => $storage->getFileSize($_)
|
||||
})
|
||||
} @{$storage->getFiles}
|
||||
]
|
||||
}
|
||||
else {
|
||||
[]
|
||||
}
|
||||
}
|
||||
})
|
||||
} @postIds;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue