From 49efaae96c3cc48b01a7683c96e98ee0a732b551 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 16 Oct 2019 22:09:24 -0600 Subject: [PATCH] Update MediaController, add timestamp to signed preview url --- app/Http/Controllers/MediaController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/MediaController.php b/app/Http/Controllers/MediaController.php index e41b22bd..0f5c101a 100644 --- a/app/Http/Controllers/MediaController.php +++ b/app/Http/Controllers/MediaController.php @@ -48,7 +48,7 @@ class MediaController extends Controller $path = $photo->storeAs($dir, $name); $res = []; $res['url'] = URL::temporarySignedRoute( - 'temp-media', now()->addHours(1), ['profileId' => $media->profile_id, 'mediaId' => $media->id] + 'temp-media', now()->addHours(1), ['profileId' => $media->profile_id, 'mediaId' => $media->id, 'timestamp' => time()] ); ImageOptimize::dispatch($media); return $res;