いいね数を隠すように

This commit is contained in:
hijiki 2024-11-03 22:58:05 +09:00
parent 1b0edffedd
commit 10be4267b1
2 changed files with 5 additions and 5 deletions

View File

@ -471,11 +471,11 @@ if (!props.mock) {
if (appearNote.value.reactionAcceptance === 'likeOnly') {
useTooltip(reactButton, async (showing) => {
const reactions = await misskeyApiGet('notes/reactions', {
noteId: appearNote.value.id,
const reactions = !defaultStore.state.hideReactionUsers ? await misskeyApiGet('notes/reactions', {
noteId: appearNote.value.id,
limit: 10,
_cacheKey_: appearNote.value.reactionCount,
});
}) : [];
const users = reactions.map(x => x.user);

View File

@ -491,11 +491,11 @@ function boostVisibility() {
if (appearNote.value.reactionAcceptance === 'likeOnly') {
useTooltip(reactButton, async (showing) => {
const reactions = await misskeyApiGet('notes/reactions', {
const reactions = !defaultStore.state.hideReactionUsers ? await misskeyApiGet('notes/reactions', {
noteId: appearNote.value.id,
limit: 10,
_cacheKey_: appearNote.value.reactionCount,
});
}) : [];
const users = reactions.map(x => x.user);