forked from GNUsocial/gnu-social
[MEDIA][Thumbnail] Fix non-instantiated variable
This commit is contained in:
parent
8ef6aceb6a
commit
86e92fedc2
@ -170,6 +170,7 @@ class AttachmentThumbnail extends Entity
|
|||||||
});
|
});
|
||||||
} catch (NotFoundException $e) {
|
} catch (NotFoundException $e) {
|
||||||
$thumbnail = self::create(['attachment_id' => $attachment->getId()]);
|
$thumbnail = self::create(['attachment_id' => $attachment->getId()]);
|
||||||
|
$event_map = [];
|
||||||
Event::handle('ResizerAvailable', [&$event_map]);
|
Event::handle('ResizerAvailable', [&$event_map]);
|
||||||
$mimetype = $attachment->getMimetype();
|
$mimetype = $attachment->getMimetype();
|
||||||
$major_mime = GSFile::mimetypeMajor($mimetype);
|
$major_mime = GSFile::mimetypeMajor($mimetype);
|
||||||
|
Loading…
Reference in New Issue
Block a user