1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-27 14:28:53 +09:00

fix(frontend): 로그인 하지 않은 사용자가 노트 내용에 포함된 이모지를 누르면 이모지 복사 및 리액션 메뉴에 접근할 수 있음

This commit is contained in:
NoriDev 2024-10-10 10:42:17 +09:00
parent 4c33a2c93c
commit d1e059e320
4 changed files with 17 additions and 16 deletions

View File

@ -43,6 +43,7 @@ Misskey의 전체 변경 사항을 확인하려면, [CHANGELOG.md#2024xx](CHANGE
- Fix: 노트의 QR 코드를 생성했을 때 `링크 복사` 버튼을 누르면 잘못된 토스트 알림이 표시됨
- Fix: 노트 메뉴에 `링크 복사` 옵션이 표시되지 않음
- Fix: 서버 이름에 마크업 언어가 포함되어 있으면 외부 사이트로 이동할 때 표시되는 대화상자에서 서버 이름이 잘못 표시될 수 있음
- Fix: 로그인 하지 않은 사용자가 노트 내용에 포함된 이모지를 누르면 이모지 복사 및 리액션 메뉴에 접근할 수 있음
---

View File

@ -73,8 +73,8 @@ SPDX-License-Identifier: AGPL-3.0-only
:text="appearNote.cw"
:author="appearNote.user"
:nyaize="noNyaize ? false : 'respect'"
:enableEmojiMenu="true"
:enableEmojiMenuReaction="true"
:enableEmojiMenu="!!$i"
:enableEmojiMenuReaction="!!$i"
/>
<MkCwButton v-model="showContent" :text="appearNote.text" :renote="appearNote.renote" :files="appearNote.files" :poll="appearNote.poll" style="margin: 4px 0;" @click.stop/>
</p>
@ -89,8 +89,8 @@ SPDX-License-Identifier: AGPL-3.0-only
:author="appearNote.user"
:nyaize="noNyaize ? false : 'respect'"
:emojiUrls="appearNote.emojis"
:enableEmojiMenu="true"
:enableEmojiMenuReaction="true"
:enableEmojiMenu="!!$i"
:enableEmojiMenuReaction="!!$i"
/>
<div v-if="defaultStore.state.showTranslateButtonInNote && (!defaultStore.state.useAutoTranslate || (!$i.policies.canUseAutoTranslate || (defaultStore.state.useAutoTranslate && (isLong || appearNote.cw != null || !showContent)))) && instance.translatorAvailable && $i && $i.policies.canUseTranslator && appearNote.text && isForeignLanguage" style="padding-top: 5px; color: var(--accent);">
<button v-if="!(translating || translation)" ref="translateButton" class="_button" @click.stop="translate()">{{ i18n.ts.translateNote }}</button>
@ -105,8 +105,8 @@ SPDX-License-Identifier: AGPL-3.0-only
:author="appearNote.user"
:nyaize="noNyaize ? false : 'respect'"
:emojiUrls="appearNote.emojis"
:enableEmojiMenu="true"
:enableEmojiMenuReaction="true"
:enableEmojiMenu="!!$i"
:enableEmojiMenuReaction="!!$i"
@click.stop
/>
<div v-if="translation.translator == 'ctav3'" style="margin-top: 10px; padding: 0 0 15px;">

View File

@ -96,8 +96,8 @@ SPDX-License-Identifier: AGPL-3.0-only
:text="appearNote.cw"
:author="appearNote.user"
:nyaize="noNyaize ? false : 'respect'"
:enableEmojiMenu="true"
:enableEmojiMenuReaction="true"
:enableEmojiMenu="!!$i"
:enableEmojiMenuReaction="!!$i"
/>
<MkCwButton v-model="showContent" :text="appearNote.text" :renote="appearNote.renote" :files="appearNote.files" :poll="appearNote.poll"/>
</p>
@ -111,8 +111,8 @@ SPDX-License-Identifier: AGPL-3.0-only
:author="appearNote.user"
:nyaize="noNyaize ? false : 'respect'"
:emojiUrls="appearNote.emojis"
:enableEmojiMenu="true"
:enableEmojiMenuReaction="true"
:enableEmojiMenu="!!$i"
:enableEmojiMenuReaction="!!$i"
/>
<a v-if="appearNote.renote != null" :class="$style.rn">RN:</a>
<div v-if="defaultStore.state.showTranslateButtonInNote && (!defaultStore.state.useAutoTranslate || (!$i.policies.canUseAutoTranslate || (defaultStore.state.useAutoTranslate && (appearNote.cw != null || !showContent)))) && instance.translatorAvailable && $i && $i.policies.canUseTranslator && appearNote.text && isForeignLanguage" style="padding-top: 5px; color: var(--accent);">
@ -128,8 +128,8 @@ SPDX-License-Identifier: AGPL-3.0-only
:author="appearNote.user"
:nyaize="noNyaize ? false : 'respect'"
:emojiUrls="appearNote.emojis"
:enableEmojiMenu="true"
:enableEmojiMenuReaction="true"
:enableEmojiMenu="!!$i"
:enableEmojiMenuReaction="!!$i"
/>
<div v-if="translation.translator == 'ctav3'" style="margin-top: 10px; padding: 0 0 15px;">
<img v-if="!defaultStore.state.darkMode" src="/client-assets/color-short.svg" alt="" style="float: right;">

View File

@ -16,8 +16,8 @@ SPDX-License-Identifier: AGPL-3.0-only
:author="note.user"
:nyaize="noNyaize ? false : 'respect'"
:emojiUrls="note.emojis"
:enableEmojiMenu="true"
:enableEmojiMenuReaction="true"
:enableEmojiMenu="!!$i"
:enableEmojiMenuReaction="!!$i"
/>
<MkA v-if="note.renoteId" :class="$style.rp" :to="`/notes/${note.renoteId}`">RN: ...</MkA>
<div v-if="defaultStore.state.showTranslateButtonInNote && (!defaultStore.state.useAutoTranslate || (!$i.policies.canUseAutoTranslate || (defaultStore.state.useAutoTranslate && (isLong || note.cw != null || !showContent)))) && instance.translatorAvailable && $i && $i.policies.canUseTranslator && note.text && isForeignLanguage" style="padding-top: 5px; color: var(--accent);">
@ -33,8 +33,8 @@ SPDX-License-Identifier: AGPL-3.0-only
:author="note.user"
:nyaize="noNyaize ? false : 'respect'"
:emojiUrls="note.emojis"
:enableEmojiMenu="true"
:enableEmojiMenuReaction="true"
:enableEmojiMenu="!!$i"
:enableEmojiMenuReaction="!!$i"
@click.stop
/>
<div v-if="translation.translator == 'ctav3'" style="margin-top: 10px; padding: 0 0 15px;">