Fix #1006, story thumbnails are displayed correctly

This commit is contained in:
Romain Neutron
2012-11-26 14:38:39 +01:00
parent 5349c93570
commit fc19c70329
2 changed files with 25 additions and 4 deletions

View File

@@ -66,7 +66,7 @@ return call_user_func(
$response->setLastModified($file->get_modification_date());
}
if ($file->getDataboxSubdef()->get_class() == \databox_subdef::CLASS_THUMBNAIL) {
if (false === $record->is_grouping() && $file->getDataboxSubdef()->get_class() == \databox_subdef::CLASS_THUMBNAIL) {
// default expiration is 5 days
$expiration = 60 * 60 * 24 * 5;