From f8bc0d9c03e307de1c3703887e07517bb6b07a7d Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 28 Jan 2022 22:56:52 -0700 Subject: [PATCH] Update InternalApiController --- app/Http/Controllers/InternalApiController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Http/Controllers/InternalApiController.php b/app/Http/Controllers/InternalApiController.php index 4391c3c3c..9280ad4a5 100644 --- a/app/Http/Controllers/InternalApiController.php +++ b/app/Http/Controllers/InternalApiController.php @@ -323,6 +323,9 @@ class InternalApiController extends Controller ->simplePaginate(10) ->map(function($bookmark) use($pid) { $status = StatusService::get($bookmark->status_id, false); + if(!$status) { + return false; + } $status['bookmarked_at'] = $bookmark->created_at->format('c'); if($status) {