From b91747b4bbff1af991a8e8e7f7a4775c482e39ae Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 12 Mar 2022 23:24:33 -0700 Subject: [PATCH] Update DiscoverController, fix favourited state on memories --- app/Http/Controllers/DiscoverController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/DiscoverController.php b/app/Http/Controllers/DiscoverController.php index a72767ae..7d8bf8ed 100644 --- a/app/Http/Controllers/DiscoverController.php +++ b/app/Http/Controllers/DiscoverController.php @@ -214,7 +214,9 @@ class DiscoverController extends Controller ->limit(20) ->pluck('status_id') ->map(function($id) { - return StatusService::get($id, false); + $status = StatusService::get($id, false); + $status['favourited'] = true; + return $status; }) ->filter(function($post) { return $post && isset($post['account']);