Update RemotePost component, fix missing like button on comments

This commit is contained in:
Daniel Supernault 2020-04-20 22:41:02 -06:00
parent a019a01b4d
commit 7ef9056537
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 2 additions and 1 deletions

View file

@ -437,7 +437,7 @@ class InternalApiController extends Controller
$status = Status::whereProfileId($user->id) $status = Status::whereProfileId($user->id)
->whereNull('reblog_of_id') ->whereNull('reblog_of_id')
->whereVisibility('public') ->whereIn('visibility', ['public', 'unlisted'])
->findOrFail($statusId); ->findOrFail($statusId);
$template = $status->in_reply_to_id ? 'status.reply' : 'status.remote'; $template = $status->in_reply_to_id ? 'status.reply' : 'status.remote';
return view($template, compact('user', 'status')); return view($template, compact('user', 'status'));

View file

@ -166,6 +166,7 @@
<span class="text-break " v-html="reply.content"></span> <span class="text-break " v-html="reply.content"></span>
</span> </span>
<span class="pl-2"> <span class="pl-2">
<span v-on:click="likeReply(reply, $event)"><i v-bind:class="[reply.favourited ? 'fas fa-heart fa-sm text-danger':'far fa-heart fa-sm text-lighter']"></i></span>
<post-menu :status="reply" :profile="user" :size="'sm'" :modal="'true'" class="d-inline-block px-2" v-on:deletePost="deleteComment(reply.id, index)"></post-menu> <post-menu :status="reply" :profile="user" :size="'sm'" :modal="'true'" class="d-inline-block px-2" v-on:deletePost="deleteComment(reply.id, index)"></post-menu>
</span> </span>
</p> </p>