summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkNote.vue
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2025-05-03 08:39:49 +0100
committerdakkar <dakkar@thenautilus.net>2025-05-03 08:47:29 +0100
commitd41372f948285de535309339b7230a64f86c41a9 (patch)
treee9a3e236fc83fbd7eec6f3bb81621c5e580e6d62 /packages/frontend/src/components/MkNote.vue
parentfix "collapse renotes of my own notes" (diff)
downloadsharkey-d41372f948285de535309339b7230a64f86c41a9.tar.gz
sharkey-d41372f948285de535309339b7230a64f86c41a9.tar.bz2
sharkey-d41372f948285de535309339b7230a64f86c41a9.zip
(manually) revert bc422fe36ff661d83d01cce17225a31d67829bd5
the fix for #1037 was wrong (it would collapse a boosted quote if the quoted note was from the current user), and not necessary (`appearNote.value.userId` _is_ the author of the boosted note, no need to look inside `note.renote` at all) so… I'm not sure why I even raised the issue 😕
Diffstat (limited to 'packages/frontend/src/components/MkNote.vue')
-rw-r--r--packages/frontend/src/components/MkNote.vue3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue
index c585a17edc..55efc3c193 100644
--- a/packages/frontend/src/components/MkNote.vue
+++ b/packages/frontend/src/components/MkNote.vue
@@ -343,8 +343,7 @@ const showTicker = (prefer.s.instanceTicker === 'always') || (prefer.s.instanceT
const canRenote = computed(() => ['public', 'home'].includes(appearNote.value.visibility) || (appearNote.value.visibility === 'followers' && appearNote.value.userId === $i?.id));
const renoteCollapsed = ref(
prefer.s.collapseRenotes && isRenote && (
- ($i && ($i.id === note.value.userId || $i.id === appearNote.value.userId
- || $i.id === note.value.renote?.userId || $i.id === appearNote.value.renote?.userId )) || // `||` must be `||`! See https://github.com/misskey-dev/misskey/issues/13131
+ ($i && ($i.id === note.value.userId || $i.id === appearNote.value.userId)) || // `||` must be `||`! See https://github.com/misskey-dev/misskey/issues/13131
(appearNote.value.myReaction != null)
),
);