hubzilla issue #946

This commit is contained in:
zotlabs
2018-01-07 02:34:37 -08:00
parent ada578e7e3
commit 0d415fb3c9
2 changed files with 128 additions and 2 deletions

View File

@@ -1801,12 +1801,17 @@ function compat_photos_list($s) {
if($found) {
foreach($matches as $match) {
$ret[] = [
$entry = [
'href' => $match[2],
'length' => 0,
'type' => guess_image_type($match[2])
];
$sizer = new \Zotlabs\Lib\Img_filesize($match[2]);
$size = $sizer->getSize();
if(intval($size)) {
$entry['length'] = intval($size);
}
$ret[] = $entry;
}
}