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: () => {