From 088ecac89db8fd1845369b6655ada24b9fd07c8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=93=E3=81=91=E3=81=A3=E3=81=A1?= <50144466+sim1222@users.noreply.github.com> Date: Mon, 7 Feb 2022 03:18:33 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E3=83=AA=E3=83=8E=E3=83=BC=E3=83=88?= =?UTF-8?q?=E3=83=A1=E3=83=8B=E3=83=A5=E3=83=BC=E3=81=AB=E9=8D=B5=E3=83=AA?= =?UTF-8?q?=E3=83=8E=E3=83=BC=E3=83=88=E3=83=9C=E3=82=BF=E3=83=B3=E3=82=92?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0=20(#13)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/en-US.yml | 1 + locales/ja-JP.yml | 1 + packages/client/src/components/renote-button.vue | 11 ++++++++++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/locales/en-US.yml b/locales/en-US.yml index 9a2b0bf5c..57033aa7a 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -94,6 +94,7 @@ unfollow: "Unfollow" followRequestPending: "Pending follow request" enterEmoji: "Enter an emoji" renote: "Renote" +renote: "Renote to followers only" unrenote: "Take back renote" renoted: "Renoted." cantRenote: "This post can't be renoted." diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 52266d5a8..4bfcab612 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -94,6 +94,7 @@ unfollow: "フォロー解除" followRequestPending: "フォロー許可待ち" enterEmoji: "絵文字を入力" renote: "Renote" +renoteFollowersOnly: "フォロワーのみにRenote" unrenote: "Renote解除" renoted: "Renoteしたよ。" cantRenote: "この投稿はRenoteできにゃいよ。" diff --git a/packages/client/src/components/renote-button.vue b/packages/client/src/components/renote-button.vue index 8d9f08b4c..03d700e17 100644 --- a/packages/client/src/components/renote-button.vue +++ b/packages/client/src/components/renote-button.vue @@ -66,7 +66,16 @@ export default defineComponent({ renoteId: props.note.id }); } - }, { + },{ + text: i18n.ts.renoteFollowersOnly, + icon: 'fas fa-unlock', + action: () => { + os.api('notes/create', { + renoteId: props.note.id, + visibility: 'followers' + }); + } + },{ text: i18n.ts.quote, icon: 'fas fa-quote-right', action: () => {