From 7ef9056537e049b5439abc5d44905e14c43d77b3 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 20 Apr 2020 22:41:02 -0600 Subject: [PATCH] Update RemotePost component, fix missing like button on comments --- app/Http/Controllers/InternalApiController.php | 2 +- resources/assets/js/components/RemotePost.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/InternalApiController.php b/app/Http/Controllers/InternalApiController.php index 1706b73c..9d127ba0 100644 --- a/app/Http/Controllers/InternalApiController.php +++ b/app/Http/Controllers/InternalApiController.php @@ -437,7 +437,7 @@ class InternalApiController extends Controller $status = Status::whereProfileId($user->id) ->whereNull('reblog_of_id') - ->whereVisibility('public') + ->whereIn('visibility', ['public', 'unlisted']) ->findOrFail($statusId); $template = $status->in_reply_to_id ? 'status.reply' : 'status.remote'; return view($template, compact('user', 'status')); diff --git a/resources/assets/js/components/RemotePost.vue b/resources/assets/js/components/RemotePost.vue index 46c9f976..4a0fad14 100644 --- a/resources/assets/js/components/RemotePost.vue +++ b/resources/assets/js/components/RemotePost.vue @@ -166,6 +166,7 @@ +