Update StoryController, fix deprecated getClientSize() use

This commit is contained in:
Daniel Supernault 2020-06-24 20:23:03 -06:00
parent 2c31601d76
commit 725fc6c62b
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -46,7 +46,7 @@ class StoryController extends Controller
$story->mime = $photo->getMimeType(); $story->mime = $photo->getMimeType();
$story->path = $path; $story->path = $path;
$story->local = true; $story->local = true;
$story->size = $photo->getClientSize(); $story->size = $photo->getSize();
$story->expires_at = now()->addHours(24); $story->expires_at = now()->addHours(24);
$story->save(); $story->save();