From cdaa15300375984d904efb4c630f097c03a77226 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 4 Dec 2021 17:46:23 -0700 Subject: [PATCH] Update StoryController --- app/Http/Controllers/StoryController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Http/Controllers/StoryController.php b/app/Http/Controllers/StoryController.php index e35595a4..1c8890d8 100644 --- a/app/Http/Controllers/StoryController.php +++ b/app/Http/Controllers/StoryController.php @@ -68,6 +68,11 @@ class StoryController extends StoryComposeController 'avatar' => $profile['avatar'], 'local' => $profile['local'], 'username' => $profile['acct'], + 'latest' => [ + 'id' => $s->id, + 'type' => $s->type, + 'preview_url' => url(Storage::url($s->path)) + ], 'url' => $url, 'seen' => StoryService::hasSeen($pid, StoryService::latest($s->profile_id)), 'sid' => $s->id