From 4ca8bf1e34e7d9a64479332c3d310deb2330594e Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 4 Aug 2019 22:58:53 -0600 Subject: [PATCH] Update PublicApiController --- app/Http/Controllers/PublicApiController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Http/Controllers/PublicApiController.php b/app/Http/Controllers/PublicApiController.php index bfff71c47..245871a89 100644 --- a/app/Http/Controllers/PublicApiController.php +++ b/app/Http/Controllers/PublicApiController.php @@ -272,6 +272,7 @@ class PublicApiController extends Controller 'created_at', 'updated_at' )->where('id', $dir, $id) + ->with('profile', 'hashtags', 'mentions') ->whereIn('type', ['photo', 'photo:album', 'video', 'video:album']) ->whereLocal(true) ->whereNull('uri') @@ -300,6 +301,7 @@ class PublicApiController extends Controller 'created_at', 'updated_at' )->whereIn('type', ['photo', 'photo:album', 'video', 'video:album']) + ->with('profile', 'hashtags', 'mentions') ->whereLocal(true) ->whereNull('uri') ->whereNotIn('profile_id', $filtered) @@ -378,6 +380,7 @@ class PublicApiController extends Controller 'created_at', 'updated_at' )->whereIn('type', ['photo', 'photo:album', 'video', 'video:album']) + ->with('profile', 'hashtags', 'mentions') ->where('id', $dir, $id) ->whereIn('profile_id', $following) ->whereNotIn('profile_id', $filtered) @@ -405,6 +408,7 @@ class PublicApiController extends Controller 'created_at', 'updated_at' )->whereIn('type', ['photo', 'photo:album', 'video', 'video:album']) + ->with('profile', 'hashtags', 'mentions') ->whereIn('profile_id', $following) ->whereNotIn('profile_id', $filtered) ->whereNull('in_reply_to_id')