forked from GNUsocial/gnu-social
[ENTITY] Cache AttachmentThumbnail query result
This commit is contained in:
parent
45a894c953
commit
bbc2fe1b5a
@ -125,7 +125,6 @@ class AttachmentThumbnail extends Entity
|
||||
});
|
||||
} catch (NotFoundException $e) {
|
||||
$thumbnail = self::create(['attachment_id' => $attachment->getId(), 'width' => $width, 'height' => $height, 'attachment' => $attachment]);
|
||||
|
||||
$event_map = ['image' => 'ResizeImage', 'video' => 'ResizeVideo'];
|
||||
$major_mime = Media::mimetypeMajor($attachment->getMimetype());
|
||||
if (in_array($major_mime, array_keys($event_map))) {
|
||||
|
Loading…
Reference in New Issue
Block a user