|
|
@ -49,9 +49,10 @@ |
|
|
|
$post['youtube'] = $matches[2]; |
|
|
|
} |
|
|
|
|
|
|
|
if (isset($post['files'])) { |
|
|
|
if (isset($post['files']) && $post['files']) { |
|
|
|
$files = json_decode($post['files']); |
|
|
|
|
|
|
|
if ($files[0]) { |
|
|
|
if ($files[0]->file == 'deleted') { |
|
|
|
if (count($files) > 1) { |
|
|
|
foreach ($files as $file) { |
|
|
@ -72,6 +73,7 @@ |
|
|
|
$post['file'] = $config['uri_thumb'] . $files[0]->thumb; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (empty($post['image_count'])) $post['image_count'] = 0; |
|
|
|
$recent_posts[] = $post; |
|
|
|