diff --git a/CHANGELOG_CHERRYPICK.md b/CHANGELOG_CHERRYPICK.md index 25528626a1..bf18d2c20a 100644 --- a/CHANGELOG_CHERRYPICK.md +++ b/CHANGELOG_CHERRYPICK.md @@ -58,6 +58,8 @@ Misskey의 전체 변경 사항을 확인하려면, [CHANGELOG.md#2023xx](CHANGE - Enhance: 컴포넌트만 새로 고쳐도 적용할 수 있는 설정은 페이지를 새로 고치지 않고 설정을 반영함 - 각 기능이 적용되는 컴포넌트(타임라인, 알림)에 따라 해당 컴포넌트만 새로 로드됩니다. - Enhance: 페이지를 새로 불러오지 않고 알림 컴포넌트를 갱신할 수 있음 +- Enhance: 리노트 개선 #400 + - 리노트 시 공개 범위를 설정할 수 있음 - Fix: '모달 배경색 제거' 옵션이 이모지 피커에 반영되지 않음 - Fix: 열람 주의로 설정된 노트의 리액션이 '더 보기'를 눌러야 표시됨 - Fix: 채널 이름이 긴 경우 게시 양식 표시가 깨지는 문제 (misskey-dev/misskey#12524) diff --git a/locales/en-US.yml b/locales/en-US.yml index a8ef83e197..17350d9fd8 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -1,5 +1,6 @@ --- _lang_: "English" +showRenoteVisibilitySelector: "Show renote visibility selector" cannotBeUsedFunc: "This feature is currently unavailable." scale: "Scale" opacity: "Opacity" @@ -1277,7 +1278,6 @@ additionalPermissionsForFlash: "Allow to add permission to Play" thisFlashRequiresTheFollowingPermissions: "This Play requires the following permissions" doYouWantToAllowThisPlayToAccessYourAccount: "Do you want to allow this Play to access your account?" translateProfile: "Translate profile" -showRenoteVisibilitySelector: "Show renote visibility selector" _nsfwOpenBehavior: click: "Click to open" doubleClick: "Double click to open" diff --git a/locales/index.d.ts b/locales/index.d.ts index 7fc517f19f..0b8cc46f37 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -3,6 +3,7 @@ // Do not edit this file directly. export interface Locale { "_lang_": string; + "showRenoteVisibilitySelector": string; "cannotBeUsedFunc": string; "scale": string; "opacity": string; @@ -1291,7 +1292,6 @@ export interface Locale { "thisFlashRequiresTheFollowingPermissions": string; "doYouWantToAllowThisPlayToAccessYourAccount": string; "translateProfile": string; - "showRenoteVisibilitySelector": string; "_nsfwOpenBehavior": { "click": string; "doubleClick": string; diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index b2a9cc7d1e..9bc318f270 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1,5 +1,6 @@ _lang_: "日本語" +showRenoteVisibilitySelector: "リノートの公開範囲オプションを表示" cannotBeUsedFunc: "この機能は現在使用できません。" scale: "大きさ" opacity: "不透明度" @@ -1288,7 +1289,6 @@ additionalPermissionsForFlash: "Playへの追加許可" thisFlashRequiresTheFollowingPermissions: "このPlayは以下の権限を要求しています" doYouWantToAllowThisPlayToAccessYourAccount: "このPlayによるアカウントへのアクセスを許可しますか?" translateProfile: "プロフィールを翻訳する" -showRenoteVisibilitySelector: "TRANSLATME-showRenoteVisibilitySelector" _nsfwOpenBehavior: click: "タップして開く" diff --git a/locales/ko-KR.yml b/locales/ko-KR.yml index 2402609a72..2eca469361 100644 --- a/locales/ko-KR.yml +++ b/locales/ko-KR.yml @@ -1,5 +1,6 @@ --- _lang_: "한국어" +showRenoteVisibilitySelector: "리노트 공개 범위 옵션 표시" cannotBeUsedFunc: "이 기능은 현재 사용할 수 없어요." scale: "크기" opacity: "불투명도" @@ -1277,7 +1278,6 @@ additionalPermissionsForFlash: "Play에 대한 추가 권한" thisFlashRequiresTheFollowingPermissions: "이 Play는 다음 권한을 요구해요" doYouWantToAllowThisPlayToAccessYourAccount: "이 Play가 계정에 접근하도록 허용할까요?" translateProfile: "프로필 번역하기" -showRenoteVisibilitySelector: "리노트 공개범위 옵션 표시" _nsfwOpenBehavior: click: "탭하여 열기" doubleClick: "두 번 탭하여 열기" diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index 7ee2a9e658..455a98cafe 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -146,7 +146,7 @@ SPDX-License-Identifier: AGPL-3.0-only v-tooltip="i18n.ts.renote" :class="$style.footerButton" class="_button" - @click.stop="(defaultStore.state.renoteQuoteButtonSeparation && !defaultStore.state.renoteVisibilitySelection && !appearNote.channel) || (defaultStore.state.renoteQuoteButtonSeparation && appearNote.channel && !appearNote.channel.allowRenoteToExternal) || (defaultStore.state.renoteQuoteButtonSeparation && appearNote.visibility === 'followers') ? renoteOnly() : renote()" + @click.stop="defaultStore.state.renoteQuoteButtonSeparation && ((!defaultStore.state.renoteVisibilitySelection && !appearNote.channel) || (appearNote.channel && !appearNote.channel.allowRenoteToExternal) || appearNote.visibility === 'followers') ? renoteOnly() : renote()" >

{{ appearNote.renoteCount }}

@@ -293,11 +293,11 @@ const isRenote = ( const el = shallowRef(); const menuButton = shallowRef(); -const quoteButton = shallowRef(); const renoteButton = shallowRef(); const renoteTime = shallowRef(); const reactButton = shallowRef(); const heartReactButton = shallowRef(); +const quoteButton = shallowRef(); const clipButton = shallowRef(); const appearNote = computed(() => isRenote ? note.value.renote as Misskey.entities.Note : note.value); const isMyRenote = $i && ($i.id === note.value.userId); diff --git a/packages/frontend/src/components/MkNoteDetailed.vue b/packages/frontend/src/components/MkNoteDetailed.vue index 4985a5f50d..fc8a58a27e 100644 --- a/packages/frontend/src/components/MkNoteDetailed.vue +++ b/packages/frontend/src/components/MkNoteDetailed.vue @@ -159,7 +159,7 @@ SPDX-License-Identifier: AGPL-3.0-only v-tooltip="i18n.ts.renote" class="_button" :class="$style.noteFooterButton" - @click="defaultStore.state.renoteQuoteButtonSeparation ? renoteOnly() : renote()" + @click.stop="defaultStore.state.renoteQuoteButtonSeparation && ((!defaultStore.state.renoteVisibilitySelection && !appearNote.channel) || (appearNote.channel && !appearNote.channel.allowRenoteToExternal) || appearNote.visibility === 'followers') ? renoteOnly() : renote()" >

{{ appearNote.renoteCount }}

@@ -177,7 +177,7 @@ SPDX-License-Identifier: AGPL-3.0-only -