From 725fc6c62b12e919dc95414b66e930d60abd5c85 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 24 Jun 2020 20:23:03 -0600 Subject: [PATCH 1/2] Update StoryController, fix deprecated getClientSize() use --- app/Http/Controllers/StoryController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/StoryController.php b/app/Http/Controllers/StoryController.php index 68d93272b..1e59fba2a 100644 --- a/app/Http/Controllers/StoryController.php +++ b/app/Http/Controllers/StoryController.php @@ -46,7 +46,7 @@ class StoryController extends Controller $story->mime = $photo->getMimeType(); $story->path = $path; $story->local = true; - $story->size = $photo->getClientSize(); + $story->size = $photo->getSize(); $story->expires_at = now()->addHours(24); $story->save(); From b863f6f065a7504ee92ca809673ab39f5f02e284 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 24 Jun 2020 20:23:56 -0600 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 38d383651..5fbe7d6a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,6 +53,7 @@ - Updated PostComponent, add recent posts ([b289f2f6](https://github.com/pixelfed/pixelfed/commit/b289f2f6)) - Updated ApiV1Controller, add status ancestor and descendant context ([a0bde855](https://github.com/pixelfed/pixelfed/commit/a0bde855)) - Updated NotificationCard, improve popover image scaling ([0153e596](https://github.com/pixelfed/pixelfed/commit/0153e596)) +- Updated StoryController, fix deprecated getClientSize() use ([725fc6c6](https://github.com/pixelfed/pixelfed/commit/725fc6c6)) ## [v0.10.9 (2020-04-17)](https://github.com/pixelfed/pixelfed/compare/v0.10.8...v0.10.9) ### Added