Browse Source

Merge pull request #2134 from pixelfed/staging

Update RemotePost component, fix missing like button on comments
daniel 5 years ago
parent
commit
b41414f113

+ 1 - 0
CHANGELOG.md

@@ -10,6 +10,7 @@
 - Updated PostComponent.vue, fix load more comments button ([847599ad](https://github.com/pixelfed/pixelfed/commit/847599ad))
 - Updated 2FA Checkpoint, add username + logout button and numeric inputmode ([26affb11](https://github.com/pixelfed/pixelfed/commit/26affb11))
 - Updated RemoteProfile, fix missing content warnings ([e487527a](https://github.com/pixelfed/pixelfed/commit/e487527a))
+- Updated RemotePost component, fix missing like button on comments ([7ef90565](https://github.com/pixelfed/pixelfed/commit/7ef90565))
 
 
 ## [v0.10.9 (2020-04-17)](https://github.com/pixelfed/pixelfed/compare/v0.10.8...v0.10.9)

+ 1 - 1
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'));

BIN
public/js/rempos.js


BIN
public/mix-manifest.json


+ 1 - 0
resources/assets/js/components/RemotePost.vue

@@ -166,6 +166,7 @@
                                   <span class="text-break " v-html="reply.content"></span>
                                 </span>
                                 <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>
                                 </span>
                               </p>