summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkNoteSub.vue
diff options
context:
space:
mode:
authorAmelia Yukii <amelia.yukii@shourai.de>2024-02-22 21:16:08 +0000
committerAmelia Yukii <amelia.yukii@shourai.de>2024-02-22 21:16:08 +0000
commitc2e02a4c61b37b441dd100064d458b5c120d5083 (patch)
treeefeac727a6e52f71003e54b7066df2a35bd8c38b /packages/frontend/src/components/MkNoteSub.vue
parentmerge: some fixes for note edits (!437) (diff)
parentReactions not working on child notes in detailed view (diff)
downloadsharkey-c2e02a4c61b37b441dd100064d458b5c120d5083.tar.gz
sharkey-c2e02a4c61b37b441dd100064d458b5c120d5083.tar.bz2
sharkey-c2e02a4c61b37b441dd100064d458b5c120d5083.zip
merge: Reactions not working on child notes in detailed view (!438)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/438 Approved-by: Amelia Yukii <amelia.yukii@shourai.de> Approved-by: dakkar <dakkar@thenautilus.net>
Diffstat (limited to 'packages/frontend/src/components/MkNoteSub.vue')
-rw-r--r--packages/frontend/src/components/MkNoteSub.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/src/components/MkNoteSub.vue b/packages/frontend/src/components/MkNoteSub.vue
index ea108ad51c..37811dd52e 100644
--- a/packages/frontend/src/components/MkNoteSub.vue
+++ b/packages/frontend/src/components/MkNoteSub.vue
@@ -141,7 +141,7 @@ const replies = ref<Misskey.entities.Note[]>([]);
const isRenote = (
props.note.renote != null &&
props.note.text == null &&
- props.note.fileIds.length === 0 &&
+ props.note.fileIds && props.note.fileIds.length === 0 &&
props.note.poll == null
);
@@ -211,7 +211,7 @@ function react(viaKeyboard = false): void {
}
} else {
blur();
- reactionPicker.show(reactButton.value, reaction => {
+ reactionPicker.show(reactButton.value ?? null, props.note, reaction => {
misskeyApi('notes/reactions/create', {
noteId: props.note.id,
reaction: reaction,