mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-24 14:03:16 +00:00
Update StoryController, fix deprecated getClientSize() use
This commit is contained in:
parent
2c31601d76
commit
725fc6c62b
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue